jnioche opened a new pull request, #1865:
URL: https://github.com/apache/stormcrawler/pull/1865

   ## Summary
   - In `OpenSearchConnection.getConnection()`, if 
`BulkProcessor.builder().build()` or `Sniffer.builder().build()` throws, the 
already-created `RestHighLevelClient` (and its connection pool/threads) is 
leaked
   - Similarly, if `Sniffer` construction fails, the `BulkProcessor` is also 
leaked
   - Wrap construction in try-catch to close already-created resources on 
failure, with cleanup exceptions added as suppressed
   
   ## Test plan
   - [ ] Verify compilation with `mvn compile -pl external/opensearch -am`
   - [ ] Verify existing OpenSearch integration tests pass
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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

Reply via email to