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

cbbackup can't backup mutations with rev over 256

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.5.0
    • 6.5.0
    • tools
    • None
    • Triaged
    • Yes

    Description

      Raised in the forums.
      Problem
      cbbackup fails when the rev of a mutation is over 256

        File "couchbase-cli/pump_dcp.py", line 413, in provide_dcp_batch_actual
          msg = (cmd, vbucket_id, key, flg, exp, cas, bytes([rev_seqno]), val, seqno, dtype, metalen,
      ValueError: bytes must be in range(0, 256)
      

      Steps to reproduce

      1. Create the default bucket
      2. Use pillowfight to populate the bucket
      3. Leave pillowfight running for enough time so each document is update more than 256 times.
      4. run cbbackup

        ./cbbackup http://localhost:8091 ~/backup -u Administrator -p password -b default -m full
        

      Expectation
      For cbbackup to be able to backup the data successfully.

      Attachments

        Issue Links

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

          Activity

            People

              pvarley Patrick Varley (Inactive)
              pvarley Patrick Varley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty