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

Primary index status shown as created after restoring a bucket with only secondary indexes built using defer_build

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • feature-backlog
    • 4.5.0
    • secondary-index
    • None
    • 4.5.0-2497

    Description

      1.create a bucket with 1000 docs and create moi or forestdb indexes using defer_build=True.
      Primary index is not created with defer_build=True.

      2. Take backup of this bucket using new cbbackupmgr.
      ./cbbackupmgr config --archive /tmp/backup --repo simple_table —-host http://127.0.0.1:8091 —-username Administrator —-password password
      ./cbbackupmgr backup --archive /tmp/backup --repo simple_table --host http://172.23.107.87:8091 --username Administrator --password password
      I am attaching the backup taken in this bug.
      3. Do cbrestore using this command:
      ./cbbackupmgr restore --archive /tmp/backup --repo simple_table --host http://172.23.107.9:8091 --username Administrator --password password
      Restore happens correctly and we see 1000 documents restored in the bucket on 172.23.107.9.

      4. Check indexes tab. All indexes get restored correctly except primary index. Attaching backup and logs from new host.
      Primary index created is shown in attachment though it was not created using defer_build=True.

      Attachments

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

        Activity

          People

            jeelan.poola Jeelan Poola
            Prerna.Manaktala Prerna Manaktala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty