-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix TestIndexWriterWithThreads#testIOExceptionDuringAbortWithThreadsOnlyOnce #14424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TestIndexWriterWithThreads#testIOExceptionDuringAbortWithThreadsOnlyOnce #14424
Conversation
…hreadsOnlyOnce Signed-off-by: guojialiang <[email protected]>
…hreadsOnlyOnce Signed-off-by: guojialiang <[email protected]>
…pen-files-after-close-directory
Signed-off-by: guojialiang <[email protected]>
Nice! I tested the patch using Fray and confirmed that there is no longer a RuntimeException. You can check how I use Fray to run the test here: https://github.com/aoli-al/lucene/tree/dev/fix-still-exist-open-files-after-close-directory with command |
Thank you @aoli-al, looking forward to the reviewer merging this fix. |
I think this change is fine and prevents some flakiness :). I will merge and backport to 10x. |
…nlyOnce (#14424) * fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce Signed-off-by: guojialiang <[email protected]> * fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce Signed-off-by: guojialiang <[email protected]> * update Signed-off-by: guojialiang <[email protected]> --------- Signed-off-by: guojialiang <[email protected]>
…nlyOnce (apache#14424) * fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce Signed-off-by: guojialiang <[email protected]> * fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce Signed-off-by: guojialiang <[email protected]> * update Signed-off-by: guojialiang <[email protected]> --------- Signed-off-by: guojialiang <[email protected]>
Description
This PR aims to address issue 14423.
Tests
TestIndexWriterWithThreads#testIOExceptionWithMergeNotEndLongTime
. I added the details of the test code to 14423. Because the testTestIndexWriterWithThreads#testIOExceptionWithMergeNotEndLongTime
requires changingIndexWriter#maybeCloseOnTragicEvent
access permissions, I did not include it in the PR.TestIndexWriterWithThreads#testIOExceptionDuringAbortWithThreadsOnlyOnce
.Checklist