race in data_replicator_test between playResponses and InitialSyncBackgroundRunner

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.12
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2016-08-29
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In InitialSyncTest::playResponses, it's possible for the next ready request to be canceled by DataReplicator::_cancelAllHandles_inlock() after getNextReadyRequest() returns true.

      https://github.com/mongodb/mongo/blob/965066ff4441f95ca757a6a9845fc1b70213e11e/src/mongo/db/repl/data_replicator_test.cpp#L656

                      auto noi = net->getNextReadyRequest();
                      if (isOplogGetMore(noi)) {
      

              Assignee:
              Benety Goh
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: