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

Clean-up topology in meta repo when all indexes of a collection are dropped

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • No

    Description

      Steps to repro:

      a. Create a 1 node KV + n1ql + index cluster

      b. Load travel sample

      c. Drop travel sample

      d. Query the localhost:9102/getLocalIndexMetada endpoint

      The output contains topologies as under:

      "topologies" : [
      {
      "bucket" : "travel-sample",
      "version" : 8,
      "scope" : "inventory",
      "collection" : "airline"
      },
      {
      "collection" : "_default",
      "scope" : "_default",
      "version" : 70,
      "bucket" : "travel-sample"
      },

      This is a leak as the topology information is never created and the meta size grows. Also, in monitorKeyspace(), we read repo by topology. Since this topology exists in repo but it is actually deleted, we go and query ns_server thinking our cache is stale. ns_server says it is removed and we do nothing. 10 seconds later, same process happens - flooding ns_server with un-necessary requests

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-50790
          # Subject Branch Project Status CR V

          Activity

            People

              varun.velamuri Varun Velamuri
              varun.velamuri Varun Velamuri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change

                  PagerDuty