Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.1.3
-
Security Level: Public
-
Untriaged
-
0
-
Unknown
Description
Due to a bug, resolveIndexStats2 will not process all index instances if the stats does not contain the index of the bucket. Current code returns "result" if the bucket of the index does not belong to the stats object. However, there can be other indexes in the list that should get updated from stats object
for _, meta := range r.indices {
|
for _, inst := range meta.Instances {
|
|
// Get the fully qualified index name
|
indexName := c.GetStatsPrefix(meta.Definition.Bucket, meta.Definition.Scope,
|
meta.Definition.Collection, meta.Definition.Name, int(inst.ReplicaId), 0, false)
|
indexName = indexName[0 : len(indexName)-1] // strip off trailing colon
|
|
if dedupedIndexStats, ok := stats[meta.Definition.Bucket]; !ok {
|
return result. // <----- This is a bug
|
} else {
|
Ideally, it is expected to process all index instances
Attachments
Issue Links
- is a backport of
-
MB-55194 [Backport MB-54837 to 7.1.5] Process all indexes in resolveIndexStats2
- Closed