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

config_transactions_mixed_ondisk_formats.js should wait the node to be secondary before reconfig

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • Repl 2024-07-22
    • 0

      When startup completes, it's not guaranteed that the node is ready for another reconfig because we update rsConfigState to kConfigReady after[ startup completes|https://github.com/10gen/mongo/blob/f029383f47c9a2217caa47dc2f8dbde93babd977/src/mongo/db/repl/replication_coordinator_impl.cpp#L579]. 

      That says, there is a race condition in the test that the restarted node can reject the reconfig if the node hasn't become kConfigReady. We should wait the restarted node to become secondary before we issue the reconfig.

            Assignee:
            jiawei.yang@mongodb.com Jiawei Yang
            Reporter:
            jiawei.yang@mongodb.com Jiawei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: