[JAVA-4515] Investigate sporadic failures of MongoClientSessionSpecification.should_ignore_unacknowledged_write_concern_when_in_a_transaction Created: 03/Mar/22  Updated: 30/Mar/22

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

Type: Task Priority: Unknown
Reporter: Valentin Kavalenka 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   

MongoClientSessionSpecification.should_ignore_unacknowledged_write_concern_when_in_a_transaction failed in this task with the following error:

[2022/03/03 21:21:15.298] FAILURE: Expected no exception to be thrown, but got 'com.mongodb.MongoCommandException' (org.spockframework.runtime.UnallowedExceptionThrownError)
...
[2022/03/03 21:21:15.298] Caused by: com.mongodb.MongoCommandException: Command failed with error 246 (SnapshotUnavailable): 'Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1646342452, 0). Collection minimum is Timestamp(1646342452, 2)' on server localhost:27018. The full response is {"errorLabels": ["TransientTransactionError"], "ok": 0.0, "errmsg": "Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1646342452, 0). Collection minimum is Timestamp(1646342452, 2)", "code": 246, "codeName": "SnapshotUnavailable", "$clusterTime": {"clusterTime": {"$timestamp": {"t": 1646342452, "i": 3}}, "signature": {"hash": {"$binary": {"base64": "7dBd9uzkxPzKkb4CkVRMjQP3iFw=", "subType": "00"}}, "keyId": 7070982818943205380}}, "operationTime": {"$timestamp": {"t": 1646342452, "i": 3}}}


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