[SERVER-65993] Make internal transaction concurrency workloads create test collection in the setup phase with w: majority Created: 26/Apr/22 Updated: 29/Oct/23 Resolved: 27/Apr/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc4, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Cheahuychou Mao | Assignee: | Cheahuychou Mao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v6.0
|
||||||||
| Sprint: | Sharding 2022-05-02 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 166 | ||||||||
| Description |
|
The workloads should explicitly create the test collection instead of implicitly creating it when the worker threads insert initial documents in the "init" state since implicit createCollection and index build operations started by those threads can conflict with each other. Additionally, the createCollection command should use writeConcern "majority", otherwise a transaction that starts while the index build is pending would fail with SnapshotUnavailable. |
| Comments |
| Comment by Githook User [ 29/Apr/22 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: (cherry picked from commit dc51c89abfef9f4202f9cb3cbe32674439f7e9f6) |
| Comment by Githook User [ 27/Apr/22 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |