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

validate_collections_on_shutdown.js should be resilient to elections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Replication
    • None
    • Replication
    • ALL
    • 5

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-repl Backlog - Replication Team
              matthew.russotto@mongodb.com Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: