Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45516

initial_sync_update_missing_doc.js should not rely on checkLog for failpoints

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Repl 2020-01-27, Repl 2020-02-10

      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.

            Assignee:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: