Streaming issue with xbcrypt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
George Ormond Lorch III | ||
2.1 |
Fix Released
|
High
|
George Ormond Lorch III | ||
2.2 |
Fix Released
|
High
|
George Ormond Lorch III |
Bug Description
xbcrypt fails to parse packet (or so it seems).
Session 1:
mkdir /tmp/x1
dd if=/dev/urandom of=bigfile bs=1M count=100
cd /tmp/x1
xbstream -c bigfile | xbcrypt --encrypt-
2014/01/27 16:30:47 socat[52746] E write(3, 0x1aec5f0, 8192): Broken pipe===
Session 2:
mkdir /tmp/x2
cd /tmp/x2
socat -u TCP-LISTEN:
xbcrypt:
joiner: 31.1MiB 0:00:16 [1.84MiB/s] [ <=> ]
2014/01/27 16:30:47 socat[52714] E write(1, 0xfe37f0, 8192): Broken pipe
%%%%%%%
Another test yielded this: (I removed rate limiting in pv to see if that is causing it)
xbstream -c bigfile | xbcrypt --encrypt-
2014/01/27 16:40:56 socat[55215] E write(3, 0x1bf55f0, 8192): Broken pipe ]
donor: 123MiB 0:00:16 [7.72MiB/s] [ <=>
Session 2:
socat -u TCP-LISTEN:
xbcrypt:
joiner: 123MiB 0:00:20 [5.99MiB/s] [ <=> ]
2014/01/27 16:40:56 socat[55169] E write(1, 0x130f7f0, 8192): Broken pipe
%%%%%%%
This issue manifests in other ways with xbcrypt itself as in here
https:/
[Reported here https:/
Related branches
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 121 lines (+52/-29)1 file modifiedsrc/xbcrypt_read.c (+52/-29)
- Sergei Glushchenko (community): Approve (g2)
tags: | added: pxc |
Removing xbcrypt from the above pipe chain allows the transfer to succeed. So, it is indeed an issue with xbcrypt.