Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-31224

Deleted document system XATTRs are not saved by cbbackup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.0.0
    • 4.5.0, 4.5.1, 4.6.0, 4.6.1, 4.6.4, 4.6.2, 4.6.3, 4.6.5, 5.0.0, 5.0.1, 5.1.0, 5.1.1, 5.5.0, 5.5.1
    • tools
    • None
    • OS X, Couchbase Server 5.5.1
    • Untriaged
    • Release Note
    • No

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thuan Thuan Nguyen
              toby.wilds Toby Wilds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty