[CDRIVER-3273] Audit options inheritance within a transaction Created: 06/Aug/19  Updated: 31/Mar/22

Status: Backlog
Project: C Driver
Component/s: libmongoc, tests
Affects Version/s: None
Fix Version/s: None

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

Issue Links:
Tested
is testing CDRIVER-3595 find_and_modify has extraneous checks... Closed
Epic Link: CDRIVER-2733

 Description   

CDRIVER-3268 discovered a bug in how the collection's unacknowledged write concern resulted in an unnecessary error within a transaction (though the collection's write concern would not be applied in that case).

The test that caught it was a spec test introduced in CDRIVER-3089. But those spec tests are only for insert and bulk write. In addition, the spec tests do not test read concern/write concern/read preferences at the operation level (because not all drivers support it).

I think we can try extending the comprehensive test-mongoc-opts.c to get more test coverage and uncover any other potential bugs. We can add to the matrix testing how read preferences, write concern, and read concern are applied as an operation in the middle of a transaction, and how the session default options and transaction options are handled.


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