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

Wait for DB works in simulateSuccessfulV1ElectionAt()

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.3, 3.5.4
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v3.4
    • Repl 2017-03-06
    • 0

      Normal synchronization between the test thread and the executor doesn't consider the DB worker thread, so we should synchronize it explicitly in tests. Otherwise, a second (very soon) election in test will change the state DB worker expects in _writeLastVoteForMyElection().

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: