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

validate_collections_on_shutdown.js should be resilient to elections

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • ALL
    • 5

      validate_collections_on_shutdown attempts to step down the node, then to freeze it. It assumes that if replSetFreeze fails with NotSecondary, it means the node is not initialized. Unfortunately, this can also happen if an election is running; in that case the node will not step down (because it is not master) nor freeze (because it is running an election). This situation can be detected because replSetStepDown will return NotMaster in that case; if replSetStepDown returns NotMaster and replSetFreeze returns NotSeconday, we should skip collection validation.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: