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

cbrestore fails to restore backups with mid transaction data

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      If a backup with more than 10 elements that has mid transactions documents is restored with cbrestore the restore is likely to fail (it may pass if all the mid transaction documents fall in the last batch of messages to be processed).

      It will fail with the message

      2020-11-26 12:36:04,934: s0 error: async operation: error: opaque mismatch: 2 3 on sink: http://localhost:8091(b'demo-bucket'@b'127.0.0.1:8091')
      

      Steps to reproduce

      1. Stand up a cluster and create a bucket
      2. Load 100 documents to the bucket
      3. Add some mid-transaction documents see the attachment for a script that does this (the run.sh)
      4. Load another 100 documets to the bucket
      5. Do a backup with cbbackup
      6. Do a restore with cbrestore

      Attachments

        Issue Links

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

          Activity

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) created issue -
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Field Original Value New Value
            Link This issue is caused by MB-35894 [ MB-35894 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Fix Version/s 6.6.2 [ 17103 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            owend Daniel Owen made changes -
            Affects Version/s Cheshire-Cat [ 15915 ]
            Affects Version/s 7.0 [ 17233 ]
            pvarley Patrick Varley made changes -
            Fix Version/s 6.5.2 [ 17223 ]
            owend Daniel Owen made changes -
            Affects Version/s 6.5.1 [ 16622 ]
            wayne Wayne Siu made changes -
            Link This issue blocks MB-42583 [ MB-42583 ]
            wayne Wayne Siu made changes -
            Labels approved-for-6.5.2 approved-for-6.6.2
            wayne Wayne Siu made changes -
            Link This issue blocks MB-43310 [ MB-43310 ]
            pvarley Patrick Varley made changes -
            Link This issue depends on CBD-3868 [ CBD-3868 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            arunkumar Arunkumar Senthilnathan (Inactive) made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            arunkumar Arunkumar Senthilnathan (Inactive) made changes -
            Labels approved-for-6.5.2 approved-for-6.6.2 approved-for-6.5.2 approved-for-6.6.2 releasenote

            People

              carlos.gonzalez Carlos Gonzalez Betancort (Inactive)
              carlos.gonzalez Carlos Gonzalez Betancort (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty