mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Fabio Pistolesi
10.29.2015 1974260538e004dbbb9639acc524a887e24bab51
OPENDJ-2211 Searches using debugsearchindex return NOT-INDEXED when index cursor limits are exceeded

In cases where we give on the index because of index cursor limits being hit, reported at least a LIMIT-EXCEEDED in debugsearchindex.

Over the shoulder review by Jean-Noel and Yannick.

1 files modified
4 ■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQueryFactoryImpl.java 4 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQueryFactoryImpl.java
@@ -28,6 +28,7 @@
import static org.opends.messages.BackendMessages.*;
import static org.opends.server.backends.pluggable.EntryIDSet.newUndefinedSet;
import static org.opends.server.backends.pluggable.EntryIDSet.newUndefinedSetWithKey;
import java.util.ArrayList;
import java.util.Collection;
@@ -203,7 +204,8 @@
              if (totalIDCount > IndexFilter.CURSOR_ENTRY_LIMIT)
              {
                // There are too many. Give up and return an undefined list.
                return newUndefinedSet();
                // Use any key to have debugsearchindex return LIMIT-EXCEEDED instead of NOT-INDEXED.
                return newUndefinedSetWithKey(cursor.getKey());
              }
              sets.add(set);
              success = cursor.next();