[JAVA-5124] Ensure retryable writes tests execute on non-replica sets Created: 29/Aug/23  Updated: 28/Oct/23  Resolved: 31/Aug/23

Status: Closed
Project: Java Driver
Component/s: Retryability, Test Coverage
Affects Version/s: None
Fix Version/s: 4.11.0

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

Issue Links:
Related
is related to JAVA-5125 Some write concern errors are not ret... Backlog
Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

In the legacy (non-unified) retryable writes test suite, there is a faulty check in com.mongodb.client.AbstractRetryableWritesTest#data that causes the tests to be skipped if the cluster is not a replica set, which means the tests don't run on sharded or serverless clusters.

The faulty check should be removed.



 Comments   
Comment by Githook User [ 31/Aug/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Remove incorrect test-skipping logic (#1186)

Skip newly-running but failing tests in code

JAVA-5124
JAVA-5125
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d08adffbf9837abad78029af1fcd1dfb60ff8dde

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