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

cbrestore should not hang when there is a vbucket mismatch.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 2.0-beta
    • 2.0
    • tools
    • Security Level: Public
    • None

    Description

      In build 1717, I start restore the backup file to one node. The backup is taken from a cluster with 1024 vbuckets. But the destination is only with 128 vbuckets. We should tell the user there is a bucket mismatch.

      [chisheng@cen-1715 ~]$ /opt/couchbase/bin/cbrestore ~/backupview/ http://10.5.2.23:8091 -u Administrator -p password -B bucket_0
      .....................................................................................................................................................................................................................................................................................................................................................................................................Exception in thread s0:
      Traceback (most recent call last):
      File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
      self.run()
      File "/usr/lib64/python2.6/threading.py", line 484, in run
      self._target(*self.args, **self._kwargs)
      File "/opt/couchbase/lib/python/pump_mc.py", line 77, in run
      rv, batch, need_backoff = self.scatter_gather(mconns, batch)
      File "/opt/couchbase/lib/python/pump_cb.py", line 29, in scatter_gather
      rv, conn = self.find_conn(mconns, vbucket_id)
      File "/opt/couchbase/lib/python/pump_cb.py", line 207, in find_conn
      host_port = serverList[vBucketMap[vbucket_id][0]]
      IndexError: list index out of range

      IndexError: list index out of range

      [1]+ Stopped /opt/couchbase/bin/cbrestore ~/backupview/ http://10.5.2.23:8091 -u Administrator -p password -B bucket_0

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            Chisheng Chisheng Hong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty