Details
Description
There is an issue with the way cbbackup stores XATTRs during the backup process.
Attempting to restore a full backup with cbrestore produced the following error:
error: conn.sendall() exception: [Errno 32] Broken pipe |
On further inspection, we see the following response from Couchbase Server in the memcached logs.
018-09-11T18:22:03.711295Z WARNING 37: Invalid format specified for DEL_WITH_META - 135 - closing connection packet:mcbp::header: magic:0x80, opcode:0xa8, keylen:8, extlen:28, datatype:0x4, specific:3, bodylen:36, opaque:0x0, rawextras:000000000000000415513856947a000000 |
We can see from Wireshark output (screenshot attached) that the XATTR data is sent during the backup process:
{"rev":"2-97576853951a3146c9c4ca80539bfd09","flags":1,"sequence":7,"recent_sequences":[6,7],"history":{"revs":["1-f97ffb79945badf2fc8f7708ddbf6667","2-97576853951a3146c9c4ca80539bfd09"],"parents":[-1,0],"deleted":[1],"channels":[null,null]},"cas":"0x0000ccd555385115","tombstoned_at":1536070889,"time_saved":"2018-09-04T15:21:29.219697+01:00"} |
Yet we don't see any any XATTR data stored in the SQLLite database within the backup (attached).
This implies the XATTR data is not being saved by cbbackup.
Attachments
Issue Links
- relates to
-
MB-51108 [CBM] Validate that the 'backup' user can read system xattrs
- Closed