mikemccand commented on code in PR #16923:
URL: https://github.com/apache/lucene/pull/16923#discussion_r4742712481


##########
lucene/core/src/java/org/apache/lucene/index/IndexWriter.java:
##########
@@ -4115,14 +4138,12 @@ public void setMergeInfo(SegmentCommitInfo info) {
    */
   private void writeReaderPool(boolean writeDeletes) throws IOException {
     assert Thread.holdsLock(this);
-    if (writeDeletes) {
-      if (readerPool.commit(segmentInfos)) {
-        checkpointNoSIS();
-      }
-    } else { // only write the docValues
-      if (readerPool.writeAllDocValuesUpdates()) {
-        checkpoint();
-      }
+    // NRT readers only see doc values updates once they are written, so 
increase the version:

Review Comment:
   Maybe reword to something like "the just written doc values updates are now 
visible to an NRT reader refresh or to commit so we increment version" or so?



-- 
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