Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
7.1
-
New
Description
At /core/src/java/org/apache/lucene/index/CheckIndex.java: 2198
The branch condition :
(i % 1 == 0)
is always true.
Did you mean (exp & 1) or (exp % 2) instead?
The related code is show below:
2198: if (i % 1 == 0) { int doc2 = it2.nextDoc(); if (doc != doc2) { throw new RuntimeException("dv iterator field=" + field + ": doc=" + doc + " was not found through advance() (got: " + doc2 + ")"); } if (it2.docID() != doc) { throw new RuntimeException("dv iterator field=" + field + ": doc=" + doc + " reports wrong doc ID (got: " + it2.docID() + ")"); } } }