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

When we wait for the cloners, we also must deliver the callback to the network thread.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2019-12-02
    • 0

      The interaction between the mock network thread and the cloner thread is somewhat perilous. In this case, we wait for the cloner by waiting on its future. This assures the callback has been scheduled to the mock network thread, but it has not actually been run. This results in a tiny race if the next operation is a runUntil and the scheduler is a bit slow at scheduling the callback.

      Solution is to call runReadyNetworkOperations after waiting for the cloner in that case.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: