iprithv commented on code in PR #16252:
URL: https://github.com/apache/lucene/pull/16252#discussion_r3422785798


##########
lucene/core/src/java/org/apache/lucene/util/RoaringDocIdSet.java:
##########
@@ -454,6 +454,9 @@ private int firstDocFromNextBlock() throws IOException {
     @Override
     public void intoBitSet(int upTo, FixedBitSet bitSet, int offset) throws 
IOException {
       for (; ; ) {
+        if (sub == null) {

Review Comment:
   intoBitSet overrides in the codebase guard exhaustion by checking doc rather 
than sub..since it's Integer.MAX_VALUE. you could do the same here!
   
   ```suggestion
           if (doc == NO_MORE_DOCS) {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to