Bharathi-Kanna opened a new pull request, #16303: URL: https://github.com/apache/lucene/pull/16303
Follow-up to #16278. Resolves the `// TODO: addSuppressed` in `NativeFSLockFactory.tryLock`. Now that the concerns are separated, this replaces the silent swallowing of channel close exceptions on lock failure with `IOUtils.closeWhileSuppressingExceptions`, attaching any close failure as a suppressed exception. ### Changes - **NativeFSLockFactory.java**: Swapped `finally`/`closeWhileHandlingException` for `catch (Throwable t)`/`closeWhileSuppressingExceptions` in `tryLock`. - **TestNativeFSLockFactory.java**: Added `testSuppressedExceptionOnLockFailure` using a mock filesystem to verify the suppressed exception behavior. - **CHANGES.txt**: Added release log entry. -- 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]
