diwu-sf commented on PR #16923:
URL: https://github.com/apache/lucene/pull/16923#issuecomment-6778415608

   Since your approval I pushed two more commits, both from the bug hunt 
write-ups that match this PR:
   
   - **LFV-001 (#16900).** I kept bumping the version when doc values updates 
are written, instead of when they are applied (Fix B). A reader opened between 
those two steps would get the new version without the update, and nothing bumps 
the version again when `flush()` writes the update, so that reader would stay 
current and miss it. The new 
`testReopenReaderOpenedBeforeUpdatesPacketFinished` pauses an update after its 
packet is applied to cover this. It passes here and fails with Fix B. The 
write-up did find a gap this PR missed: `hasUncommittedChanges()` returned 
false for an update that was applied but not written yet. It now also checks 
the reader pool for those updates, with a test that commits only if there are 
uncommitted changes, rolls back, and checks that the update survived.
   - **LFV-012.** The generation check in `isCurrent()` already fixed it, but 
nothing tested it. There's now a test in `TestRollback`, and the comment in 
`isCurrent()` gives both reasons for the check.
   
   I also updated the CHANGES entries and the description. Could you take 
another look?
   


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