[SERVER-45516] initial_sync_update_missing_doc.js should not rely on checkLog for failpoints Created: 13/Jan/20  Updated: 31/Jan/20  Resolved: 31/Jan/20

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

Type: Bug Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Pavithra Vetriselvan
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Repl 2020-01-27, Repl 2020-02-10
Participants:

 Description   

SERVER-39165 introduced the waitForFailPoint command and corresponding fail_point_util.js library. We should update initial_sync_update_missing_doc.js to use the fail point helpers because a slow checkLog command can cause a deadlock in tests that use the initial_sync_update_missing_doc library.

This is because we will acquire the global lock in IS mode when trying to log a slow command. If we have turned on a failpoint (for example, initialSyncHangBeforeGettingMissingDocument) that has already acquired a lock in X mode, this attempt to log the slow command will hang.


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