[JAVA-2868] Re-enable write concern tests for dropDatabase command Created: 29/May/18  Updated: 28/Oct/23  Resolved: 16/Nov/18

Status: Closed
Project: Java Driver
Component/s: Command Operations
Affects Version/s: None
Fix Version/s: 3.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:
Depends
depends on SERVER-35265 Write concern error on dropDatabase c... Closed

 Description   

Write concern failures for dropDatabase result in failed command in 4.1 server builds, so tests in the driver had to be disabled.  This ticket tracks re-enablement of these tests.



 Comments   
Comment by Githook User [ 16/Nov/18 ]

Author:

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

Message: Use a failpoint to force write concern errors in drop database tests

Starting in MongoDB 4.0, the technique of using a write concern with a
"w" value that is greater than the number of replica set members in
order to force a write concern fails for the drop database command.
Also starting in MongoDB 4.0, there is a failpoint available that allows
tests to force a write concern error. This patch updates the drop
database write concern error tests to use the failpoint when the server
version is >= 4.0

JAVA-2868
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/fbe8ef26efe091a5d607907ed9c16b379c257951

Comment by Githook User [ 04/Jun/18 ]

Author:

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

Message: JAVA-2868: Disable drop database write concern tests failing against 4.0 server
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/2470feab5537b1071b422d538747ac7f38d519c9

Comment by Githook User [ 29/May/18 ]

Author:

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

Message: JAVA-2868: Disable drop database write concern tests failing against 4.1 server
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d0a4c7d29b8636e2559afd987ec88edc843aeaee

Generated at Thu Feb 08 08:58:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.