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

Restore using rest api is failing during the rebalance

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • 1
    • Unknown

    Description

      Steps to reproduce:

      1. create a cluster with 2 nodes with services kv+index, index
      2. create a bucket, scope and collection
      3. create indexes on the collection
      4. backup using GET: /api/v1/bucket/[bucket_name]/backup
      5. rebalance out a node without kv
      6. Asynchronously rebalance-in the same node now do restore using POST: /api/v1/bucket/[bucket_name]/backup while the rebalance is happening
      7. restore fails

      In logs 

      [Error] requestHandler.makeCreateIndexRequest(): create index request fails for /createIndex. Error=missing port in address

       [Info] clustMgrAgent::OnIndexCreate Notification Received for Create Index DefnId: 8825826611288088106 Name: idx_1_2_6 Using: plasma Bucket: test_bucket_1 Scope/Id: _default/0 Collection/Id: _default/0 IsPrimary: false NumReplica: 0 InstVersion: 0 
      SecExprs: <ud>([`firstName` `lastName`])</ud> 
      Desc: [false false]
      PartitionScheme: SINGLE 
      HashScheme: CRC32 PartitionKeys: [] WhereExpr: <ud>()</ud> RetainDeletedXATTR: false &{0} partitions [0]

      [Info] Indexer::handleCreateIndex 
      InstId: 15212591596600147708
      Defn: DefnId: 8825826611288088106 Name: idx_1_2_6 Using: plasma Bucket: test_bucket_1 Scope/Id: _default/0 Collection/Id: _default/0 IsPrimary: false NumReplica: 0 InstVersion: 0 
      SecExprs: <ud>([`firstName` `lastName`])</ud> 
      Desc: [false false]
      PartitionScheme: SINGLE 
      HashScheme: CRC32 PartitionKeys: [] WhereExpr: <ud>()</ud> RetainDeletedXATTR: false 
      State: INDEX_STATE_CREATED
      RState: RebalActive
      Stream: NIL_STREAM
      Version: 0
      ReplicaId: 0
      PartitionContainer: &{map[0:

      {0 0 [:9105]}

      ] 1024 1 1024 SINGLE 0}

      Attachments

        1. node1.zip
          42.22 MB
        2. node2.zip
          1.62 MB

        Issue Links

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

          Activity

            People

              amit.kulkarni Amit Kulkarni
              bhargava.yadavalli Bhargava Yadavalli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty