Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1987

buildDeferredIndexes on default collection fails if deferred indexes with different name exist in other collection

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 3.4.0
    • None
    • None
    • None
    • Release Note
    • 1

    Description

      Suggested release note:

      Fixed a problem where `QueryIndexManager.buildDeferredIndexes` would throw `InternalServerFailureException` when building indexes on the default collection if there were also deferred indexes in a different collection.

      To reproduce the problem:

      1. Create a deferred index on the default collection.
      1. Create a deferred index on a different collection in the same bucket; give the index a different name.
      3. Use the Java SDK to build deferred indexes on the default collection, without specifying any options.

      Observed: An exception complaining that an index was not found. This happens because the SDK fails to narrow the results to the default collection when calling getAllQueryIndexes to determine which indexes to build.

      Workaround: Explicitly specify the "_default" scope and "_default" collection options when calling buildDeferredIndexes.

      Attachments

        For Gerrit Dashboard: JCBC-1987
        # Subject Branch Project Status CR V

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty