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

Wait for DB works in simulateSuccessfulV1ElectionAt()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 3.4.3, 3.5.4
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • Repl 2017-03-06
    • 0

    Description

      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().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: