[SERVER-53479] Wait for mirrored operations in mirror_reads.js Created: 22/Dec/20 Updated: 29/Oct/23 Resolved: 09/Apr/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.0-rc0, 4.4.9 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Amirsaman Memaripour | Assignee: | George Wangensteen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | servicearch-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v4.9, v4.4
|
||||||||||||||||
| Sprint: | Service Arch 2021-03-08, Service Arch 2021-03-22, Service Arch 2021-04-05, Service Arch 2021-04-19 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 126 | ||||||||||||||||
| Story Points: | 3 | ||||||||||||||||
| Description |
|
There are no barriers between the tests in jstests/noPassthrough/mirror_reads.js, which allows some stats to leak between tests. In particular, we may trigger a series of reads in a test (from here) and wait for the number of mirrored requests to exceed a minimum threshold (in here). Once the minimum is reached, we check the number of mirrored requests against a maximum and continue with the next test. However, some of the mirrored requests may still be in progress, causing the next test to fail. To address this, we must ensure all mirrored requests are resolved before returning from each test, ensuring no mirroring operation spans over multiple tests.
Acceptance Criteria: The particular test has proper isolation between test cases. |
| Comments |
| Comment by Githook User [ 04/Aug/21 ] |
|
Author: {'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}Message: (cherry picked from commit bcd58f9b973e2a6839b40ceedb69dd245e72ab05) |
| Comment by Githook User [ 08/Apr/21 ] |
|
Author: {'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}Message: |