Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.5.0
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
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"
|
}
|