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

Periodic calls to bucket streaming endpoints

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.0.0
    • Cheshire-Cat
    • fts, query
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Steps to reproduce:

      1. Setup a 2 node cluster: 1kv+n1ql, 1 index node
      2. Create 10 collections on default bucket and default scope
      3. Create 10 GSI indexes, one on each of these collections
      4. Keep the query-ui throughout the process
      5. Restart cbq-engine process

      Every 20 seconds, we can see 10 calls to  "/pools/default/bs/" endpoint from cbq-engine.

      Tracing back in the code, I think this call seems to be happening because of the following code:

      // FTS indexer
       coll.ftsIndexer, qerr = ftsclient.NewFTSIndexer2(store.URL(), namespace.name, coll.bucket.name, coll.scope.id, coll.id)
       if qerr != nil {
           logging.Warnf("Error loading FTS indexes for keyspace %s. Error %v", coll.id, qerr) 
      } else { 
           coll.ftsIndexer.SetConnectionSecurityConfig(connSecConfig) 
      }
      

       

      The query node seems to instantiate an FTS client object even if there is no FTS service in the cluster and this some how is querying the bucket streaming endpoint. After commenting the above code, I do not see the calls to bucket streaming endpoint. Also, if the query-ui is not open when cbq-engine restarts, I do not  see this issue.

      Thanks to Steve Watanabe for identifying this issue

      Attachments

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              varun.velamuri Varun Velamuri
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty