[SERVER-50668] Refactor JS tests that enable rsSyncApplyStop Created: 01/Sep/20  Updated: 29/Oct/23  Resolved: 07/Oct/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Ali Mir
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-50626 Race in read_concern_majority_getmore... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-09-21, Repl 2020-10-05, Repl 2020-10-19
Participants:

 Description   

As we saw in SERVER-50626, we must enable rsSyncApplyStop in a specific way to avoid a race condition. Let's audit all our tests and ensure they use the utility functions in write_concern_util.js instead of enabling rsSyncApplyStop directly.

Also, the code in write_concern_util.js currently waits for a specific log message to know that the oplog fetcher has reached the rsSyncApplyStop failpoint. Let's use the modern waitForFailPoint command in write_concern_util.js instead.



 Comments   
Comment by Githook User [ 07/Oct/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-50668 Refactor JS tests that enable rsSyncApplyStop
Branch: master
https://github.com/mongodb/mongo/commit/7d0b17d451919a6c47eded445df21a3219d2111e

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