Details
-
New Feature
-
Resolution: Fixed
-
Major
-
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.