[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:
Backports
Depends
Duplicate
is duplicated by SERVER-51830 mirrored_reads.js doesn't wait for al... Closed
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: SERVER-53479 Wait for mirrored operations in mirror_reads.js

(cherry picked from commit bcd58f9b973e2a6839b40ceedb69dd245e72ab05)
Branch: v4.4
https://github.com/mongodb/mongo/commit/8a692f5352c12688042506d3ceba731ecb580f41

Comment by Githook User [ 08/Apr/21 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-53479 Wait for mirrored operations in mirror_reads.js
Branch: master
https://github.com/mongodb/mongo/commit/bcd58f9b973e2a6839b40ceedb69dd245e72ab05

Generated at Thu Feb 08 05:31:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.