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

Avoid call to ns_server when querying info for deleted bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.1.0
    • secondary-index
    • None
    • Untriaged
    • 1
    • Yes

    Description

      Repurposed this MB to remove the explicit call to ns_server when we see "ignoring ForceUpdateNotification as bucket is not found bucket travel-sample".
      In cinfo lite if it gets a request to get data for the bucket which is not in its book keeping it will make a REST call to ns_server and get the data if the bucket is present else it will ignore the request and respond with error.
      We must remove this need for explicit call to ns_server by using the data from streaming endpoint.

      ========================================================
      Build: 7.1.0-2220

      • One node cluster with kv, query and index
      • enable n2n encryption

        /opt/couchbase/bin/couchbase-cli setting-autofailover -c http://localhost:8091 -u Administrator -p password --enable-auto-failover 0
        /opt/couchbase/bin/couchbase-cli node-to-node-encryption -c http://localhost:8091 -u Administrator -p password --enable
        

      • Load travel-sample
      • Run a query

        select name from `travel-sample`
        

      • Drop travel-sample
      • Enable encryption level to strict

        /opt/couchbase/bin/couchbase-cli setting-security -c http://localhost:8091 -u Administrator -p password --set --cluster-encryption-level strict
        

      • we see the following warnings in the indexer log - continuously

        2022-02-02T15:06:32.096-08:00 [Warn] handleBucketInfoChanges: ignoring ForceUpdateNotification as bucket is not found bucket travel-sample
        2022-02-02T15:06:32.097-08:00 [Warn] handleCollectionManifestChanges: ignoring ForceUpdateNotification as bucket is not found bucket travel-sample
         
         
        [root@cluster-g1 logs]# zgrep "bucket is not found bucket travel-sample"  indexer.log  |  wc -l
        423
        

      Logs:

      https://cb-jira.s3.us-east-2.amazonaws.com/logs/test/collectinfo-2022-02-02T231217-ns_1%40127.0.0.1.zip

      Attachments

        Issue Links

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

          Activity

            People

              pavan.pb Pavan PB
              girish.benakappa Girish Benakappa
              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