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

[BP MB-41938 6.6.2] - DDLServiceMgr can take long time to build partitioned index with replica

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      DDLServiceMgr triggers the build of a partitioned index with replica created in non-defer mode. In order to do this, it needs MetadataProvider.

      When DDLServiceMgr tries to instantiate a new MetadataProvider, it waits for 500ms.
      https://github.com/couchbase/indexing/blob/457f86ae37854d1a7cf34ef7df6df6e723c28548/secondary/indexer/ddl_service_manager.go#L1657

      In case of large number of indexes, 500ms may not be enough, as there are other consumers such as getLocalIndexMetadata (used to respond to /getIndexStatus) which take lock while iterating over the repo.

      This can delay the index build.

      Attachments

        Issue Links

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

          Activity

            jeelan.poola Jeelan Poola added a comment -

            Mihir Kamdar Wayne Siu This issue came from a customer. Fix is simple increase of timeout value. No functional impact. Request inclusion in 6.6.2. Thank you!

            jeelan.poola Jeelan Poola added a comment - Mihir Kamdar Wayne Siu This issue came from a customer. Fix is simple increase of timeout value. No functional impact. Request inclusion in 6.6.2. Thank you!
            mihir.kamdar Mihir Kamdar added a comment -

            Wayne Siu we can take this one in 6.6.2. Dev will help verify this change.

            mihir.kamdar Mihir Kamdar added a comment - Wayne Siu we can take this one in 6.6.2. Dev will help verify this change.

            Build couchbase-server-6.6.2-9531 contains indexing commit 1de7c4c with commit message:
            MB-44409 [BP 6.6.2] allow more time for MetadataProvider init

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.2-9531 contains indexing commit 1de7c4c with commit message: MB-44409 [BP 6.6.2] allow more time for MetadataProvider init

            Verified by dev.

            deepkaran.salooja Deepkaran Salooja added a comment - Verified by dev.

            People

              deepkaran.salooja Deepkaran Salooja
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty