[JAVA-4025] RetryableWritesTest should re-throw operation exceptions Created: 27/Feb/21  Updated: 28/Oct/23  Resolved: 03/Mar/21

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 4.3.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


 Description   

AbstractRetryableWritesTest swallows unexpected exceptions throw from operations and then compares expected result against empty actual result. This makes debugging failures like JAVA-3912 more difficult. It also can result in a false positive test success in the case where no expected result is supplied.



 Comments   
Comment by Githook User [ 03/Mar/21 ]

Author:

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

Message: Ensure retryable writes tests fail when unexpected exception is thrown (#675)

Also, ensure that the stack trace of the unexpected exception is
included in build output by re-throwing the exception.

JAVA-4025
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/09000b64af7256386009f9058bbcb3d1850bb833

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