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

cbbackupmgr incorrectly restores json documents as binary documents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.0.0
    • Cheshire-Cat
    • tools
    • None
    • Triaged
    • 1
    • Yes

    Description

      Problem
      Regression observed in build 7.0.0-3023.

      After backup/restore, indexes all appear to be empty (0 items, 0 resident ratio).

      Steps to Reproduce

      1. Initialize a new server/cluster, only data/query/index nodes required.
      2. load travel-sample bucket, wait for all indexes to be online
      3. perform backup with cbbackupmgr
        1. mkdir /tmp/backup
        2. /opt/couchbase/bin/cbbackupmgr config --archive /tmp/backup --repo default
        3. /opt/couchbase/bin/cbbackupmgr backup --archive /tmp/backup --repo default --cluster http://127.0.0.1:8091 --username Administrator --password password
      4. drop travel-sample bucket
      5. create empty travel-sample bucket
      6. perform restore from backup: /opt/couchbase/bin/cbbackupmgr restore --archive /tmp/backup --repo default --cluster http://127.0.0.1:8091 --username Administrator --password password
      7. build indexes: BUILD INDEX ON `travel-sample` (( SELECT RAW name FROM system:indexes WHERE keyspace_id = 'travel-sample' AND state = 'deferred' ))

      Notes
      With build 7.0.0-3022, after the BUILD INDEX command, all indexes appears normal, with 100% resident ratio and non-0 number of items. With build 7.0.0-3023, all indexes (with exception of the primary index) appears to be empty, with 0 number of items and 0 resident ratio.

      Further more, attempting to create any new secondary index will also result in empty index, e.g.:

      CREATE INDEX idx_city_country ON `travel-sample`(city, country)

      I've attached screen shot for the indexes tab for both build 3022 and build 3023.

      Attachments

        Issue Links

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

          Activity

            People

              bingjie.miao Bingjie Miao
              bingjie.miao Bingjie Miao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty