[JAVA-4831] Improve test coverage for retryable handshake errors (reactive streams) Created: 19/Dec/22  Updated: 03/Jan/23

Status: Backlog
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2489 Improve test coverage for retryable h... Implementing
Related
related to JAVA-4798 Improve test coverage for retryable h... Closed

 Description   

The spec tests for JAVA-4798 pass for the sync driver, but fail for the reactive streams driver due to timing-related issues that cause assertion failures on the number of delivered events. Tried using SyncMongoClient#enableSleepAfterCursorOpen but it didn't solve the problem: depending on how long the sleep was it either generated more than or less than the expected number of connection-checkout-started events.

JAVA-4798 tests have been synced and that ticket is closed, but the new tests are skipped in com.mongodb.reactivestreams.client.unified.UnifiedRetryableReadsTest.

This ticket is intended to track work to enable those tests, though it's unclear how it will be done.


Generated at Thu Feb 08 09:03:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.