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

Replica indexes are being shown the same replica ID on UI

    XMLWordPrintable

Details

    Description

      a. Set up a cluster with 1KV+n1ql, 3 indexer nodes
      b. Create an index with 2 replicas: CREATE INDEX random_index_308279 ON default(age) USING GSI WITH

      {'num_replica': 2}

      On UI, we see that 2 indexes are having the same replica ID (Attached screenshot). The output of getIndexStatus rest endpoint seems to give the correct names

      {
         "status" : [
            {
               "numPartition" : 1,
               "stale" : false,
               "name" : "random_index_308279",
               "numReplica" : 2,
               "bucket" : "default",
               "lastScanTime" : "NA",
               "indexName" : "random_index_308279",
               "completion" : 100,
               "definition" : "CREATE INDEX `random_index_308279` ON `default`(`age`) WITH {  \"nodes\":[ \"127.0.0.1:9001\",\"127.0.0.1:9002\",\"127.0.0.1:9003\" ], \"num_replica\":2 }",
               "defnId" : 2896028364053025183,
               "status" : "Ready",
               "partitionMap" : {
                  "127.0.0.1:9001" : [
                     0
                  ]
               },
               "progress" : 100,
               "replicaId" : 0,
               "scheduled" : false,
               "partitioned" : false,
               "hosts" : [
                  "127.0.0.1:9001"
               ],
               "instId" : 11056573212564743146,
               "secExprs" : [
                  "`age`"
               ],
               "indexType" : "plasma"
            },
            {
               "numReplica" : 2,
               "bucket" : "default",
               "stale" : false,
               "name" : "random_index_308279 (replica 1)",
               "numPartition" : 1,
               "lastScanTime" : "NA",
               "indexName" : "random_index_308279",
               "completion" : 100,
               "definition" : "CREATE INDEX `random_index_308279` ON `default`(`age`) WITH {  \"nodes\":[ \"127.0.0.1:9001\",\"127.0.0.1:9002\",\"127.0.0.1:9003\" ], \"num_replica\":2 }",
               "defnId" : 2896028364053025183,
               "progress" : 100,
               "replicaId" : 1,
               "status" : "Ready",
               "partitionMap" : {
                  "127.0.0.1:9002" : [
                     0
                  ]
               },
               "scheduled" : false,
               "secExprs" : [
                  "`age`"
               ],
               "instId" : 1242037680387350256,
               "partitioned" : false,
               "hosts" : [
                  "127.0.0.1:9002"
               ],
               "indexType" : "plasma"
            },
            {
               "defnId" : 2896028364053025183,
               "completion" : 100,
               "definition" : "CREATE INDEX `random_index_308279` ON `default`(`age`) WITH {  \"nodes\":[ \"127.0.0.1:9001\",\"127.0.0.1:9002\",\"127.0.0.1:9003\" ], \"num_replica\":2 }",
               "indexName" : "random_index_308279",
               "lastScanTime" : "NA",
               "name" : "random_index_308279 (replica 2)",
               "stale" : false,
               "numPartition" : 1,
               "bucket" : "default",
               "numReplica" : 2,
               "indexType" : "plasma",
               "hosts" : [
                  "127.0.0.1:9003"
               ],
               "partitioned" : false,
               "secExprs" : [
                  "`age`"
               ],
               "instId" : 10210157974026361286,
               "scheduled" : false,
               "status" : "Ready",
               "partitionMap" : {
                  "127.0.0.1:9003" : [
                     0
                  ]
               },
               "replicaId" : 2,
               "progress" : 100
            }
         ],
         "code" : "success"
      }
      

      Attachments

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

        Activity

          dfinlay Dave Finlay added a comment -

          Ping on this Pavel.

          dfinlay Dave Finlay added a comment - Ping on this Pavel.
          lynn.straus Lynn Straus added a comment -

          Added due date field (preset to Nov 15). Please update the due date to the current ETA for a fix. Thanks.

          lynn.straus Lynn Straus added a comment - Added due date field (preset to Nov 15). Please update the due date to the current ETA for a fix. Thanks.

          Build couchbase-server-6.5.0-4739 contains ns_server commit fb7a501 with commit message:
          MB-36509: extract replica id correctly

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-4739 contains ns_server commit fb7a501 with commit message: MB-36509 : extract replica id correctly

          Build couchbase-server-7.0.0-1032 contains ns_server commit fb7a501 with commit message:
          MB-36509: extract replica id correctly

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-1032 contains ns_server commit fb7a501 with commit message: MB-36509 : extract replica id correctly

          Verified on 6.5.0-4783

          mihir.kamdar Mihir Kamdar (Inactive) added a comment - Verified on 6.5.0-4783

          People

            mihir.kamdar Mihir Kamdar (Inactive)
            varun.velamuri Varun Velamuri
            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