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

Retry connecting to shut down primary until failure in shutdown_primary.js

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.12, 3.4.2, 3.5.2
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Repl 2017-01-23
    • 0

      Currently there is a race condition at the end of shutdown_primary.js. In a parallel shell, the primary node is issued a shutdown command, which causes the shell to exit with a network error during the shutdown process. Sometimes the error is thrown early enough that the primary can still be connected to, causing the test to fail.

      To account for this uncertainty, the test should retry connecting to the shutting down primary until it throws an error as expected (or times out, in which case the test would fail).

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: