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

[BP to 7.2.0]- Process all indexes in resolveIndexStats2

    XMLWordPrintable

Details

    • 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

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

          Activity

            People

              yash.dodderi Yash Dodderi
              varun.velamuri Varun Velamuri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty