-
Type:
Build Failure
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
During the execution of CrudProseTest.testBulkWriteHandlesWriteErrorsAcrossBatches, the test fails with an unexpected IllegalStateException (timeout during blocking read) instead of the expected ClientBulkWriteException. Additionally, an assertion error occurs because not all connections are closed after shutting down the client, and a NullPointerException is thrown in asynchronous channel handling.
Evidence from logs: Link
- Assertion error: Expected all connections to be closed after closing the client.
- Unexpected exception: java.lang.IllegalStateException instead of ClientBulkWriteException
- NullPointerException in async channel: Cannot invoke "java.nio.ByteBuffer.hasRemaining()" because "this.buf" is null
Impact:
- Potential resource leaks due to lingering connections
- Test instability and unpredictable failures
Acceptance criteria:
- Investigate and fix resource cleanup to ensure all connections are closed after MongoClient shutdown