[JAVA-3912] Investigate retryable writes test failure Created: 16/Dec/20  Updated: 30/Mar/22

Status: Backlog
Project: Java Driver
Component/s: Reactive Streams, Test Failure
Affects Version/s: None
Fix Version/s: None

Type: Task 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

Epic Link: Investigate flaky tests

 Description   

com.mongodb.reactivestreams.client.RetryableWritesTest:
UpdateOne_is_not_committed_on_first_attempt

https://evergreen.mongodb.com/task/mongo_java_driver_tests_jdk8_unsecure__version~3.6_os~linux_topology~replicaset_auth~noauth_ssl~nossl_jdk~jdk8_test_1a568955081e4a690a582293c2c012175c618f82_20_12_15_13_38_06

FAILURE: java.lang.AssertionError: expected:<{"matchedCount": 1, "modifiedCount": 1, "upsertedCount": 0}> but was:<{}> (java.lang.AssertionError)
 java.lang.AssertionError: expected:<{"matchedCount": 1, "modifiedCount": 1, "upsertedCount": 0}> but was:<{}>
 	at org.junit.Assert.fail(Assert.java:89)
 	at org.junit.Assert.failNotEquals(Assert.java:835)
 	at org.junit.Assert.assertEquals(Assert.java:120)
 	at org.junit.Assert.assertEquals(Assert.java:146)
 	at com.mongodb.client.AbstractRetryableWritesTest.shouldPassAllOutcomes(AbstractRetryableWritesTest.java:155)



 Comments   
Comment by Jeffrey Yemin [ 27/Feb/21 ]

This one would be easier to debug if the RetryableWritesTest didn't swallow unexpected exceptions thrown from operations. Currently it does, and then compares the expected result against an empty actual result.

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