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

[BP 6.6.2 MB-43884] - Cluster info cache refresh optimisations - Query buckets.uri endpoint only on a change in version hash

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      Whenever there is a change in poolsStreaming endpoint, indexer currently queries bucket.uri endpoint to fetch list of all buckets. This is not necessary and the buckets.uri endpoint can be queried only when there is a change in the version hash provided with the poolsStreaming endpoint.

      Sample bucket.uri endpoint: buckets?v=108371236&uuid=242e131dd148b2264e79aad3dbb5794f

      The version hash (108371236) will change only when there is a change in bucket UUID/node status/bucket list change. So, for most cases, indexer need to refresh its bucket cache.

      Only exception is KV_Sender. During rebalance, kv_sender requires latest vbucket map. The change to vbucket map does not trigger a pool change notification. So, KV sender should fetch the bucket map from the corresponding terstBucketBase endpoint instead of relying on cluster info cache.

      Attachments

        Issue Links

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

          Activity

            People

              mihir.kamdar Mihir Kamdar (Inactive)
              jeelan.poola Jeelan Poola
              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