[CDRIVER-3287] Run mongos txn tests in evergreen Created: 08/Aug/19  Updated: 28/Oct/23  Resolved: 12/Aug/19

Status: Closed
Project: C Driver
Component/s: libmongoc, Transactions
Affects Version/s: None
Fix Version/s: 1.15.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CDRIVER-3293 Fix remaining skipped mongos transact... Closed
Epic Link: C 4.2 Support

 Description   

Transactions tests are not being run on evergreen, since test_framework_skip_if_no_txns still has the old logic of skipping if connected to a mongos.

Let's enable these tests, and make any necessary fixes.



 Comments   
Comment by Githook User [ 12/Aug/19 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3287 run mongos txn tests in evergreen

Comment by Kevin Albertson [ 08/Aug/19 ]

I have a WIP branch with some fixes to the test runner so spec tests run against mongos, but I had to add skips for three failing tests. https://github.com/kevinAlbs/mongo-c-driver/commit/55503fad10744674de1ff780c8c82d85982723a4

And, even the non-failing tests that are using readConcern: snapshot sometimes fail with an error like:

Expected success, got error "Transaction bd314a9e-3cc2-4428-b620-1b5b45b6258c:1 was aborted on statement 0 due to: a non-retryable snapshot error :: caused by :: Encountered error from localhost:27019 during a transaction :: caused by :: Read timestamp Timestamp(1565232281, 26) is older than the oldest available timestamp.":

Generated at Wed Feb 07 21:17:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.