SIGPIPE handling of xbstream
Bug #1273207 reported by
Raghavendra D Prabhu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.2 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
As reported in
https:/
and
https:/
xbstream doesn't exit when pipe breaks.
It loops around like
read(0, "", 327721) = 0
read(0, "", 327721) = 0
read(0, "", 327721) = 0
read(0, "", 327721) = 0
while others have exited from broken pipe.
This can affect SST and/or any processes which depend on the
completion.
While run interactively, a Ctrl-C (SIGINT) is required to break
the hang. (and kill xbstream)
Related branches
lp:~akopytov/percona-xtrabackup/bug1273207-2.1
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 180 lines (+54/-29)6 files modifiedsrc/common.h (+24/-0)
src/xbcrypt.c (+3/-3)
src/xbcrypt.h (+1/-2)
src/xbcrypt_read.c (+8/-8)
src/xbstream_read.c (+6/-16)
test/t/bug1273207.sh (+12/-0)
lp:~akopytov/percona-xtrabackup/bug1273207-2.2
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 180 lines (+54/-29)6 files modifiedstorage/innobase/xtrabackup/src/common.h (+24/-0)
storage/innobase/xtrabackup/src/xbcrypt.c (+3/-3)
storage/innobase/xtrabackup/src/xbcrypt.h (+1/-2)
storage/innobase/xtrabackup/src/xbcrypt_read.c (+8/-8)
storage/innobase/xtrabackup/src/xbstream_read.c (+6/-16)
storage/innobase/xtrabackup/test/t/bug1273207.sh (+12/-0)
tags: | added: pxc |
To post a comment you must log in.
read(0, "", 327721) = 0
should probably cause xbstream to exit, ie, when it gets nothing from the network. (Now, it depends on how xbstream handles stream and listens on stdin)