Details
-
Bug
-
Resolution: Fixed
-
Major
-
Cheshire-Cat
-
Untriaged
-
1
-
No
Description
Reproduce bug:
- create a secondary index on a bucket (_default collection)
- create another secondary index with the same name as above on a named collection in the same bucket as above but with different scope
- create a varied number of documents in _default collection and named collection (say 2 docs in _default collection and 1 doc in the named collection)
- Run curl -u Administrator:password http://localhost:9102/api/v1/stats
- Continue step 4 for 2-3 times all the responses should be the same.
Attaching json responses for 2 consecutive requests to /api/v1/stats check
test_bucket_2:idx_age.items_count in both the responses
This bug also occurs in the following scenario:
- create a bucket with 1 scope and 2 collections
- create gsi on collection1 and collection2 with same name
- insert varied number of docs in both collections
- now hit /api/v1/stats, the response contains only one index info
create indexes:
create index idx on default:test_bucket_1.test_scope_1.test_collection_1(name)
create index idx on default:test_bucket_1.test_scope_1.test_collection_2(name)
response for <ip>:9102/api/v2/stats:
{
"indexer":
,
"test_bucket_1:idx":
}
Attachments
For Gerrit Dashboard: MB-42144 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
138582,6 | MB-42144 Fix Index Names in /api/v1/stats indexer level stats | unstable | indexing | Status: MERGED | +2 | +1 |