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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.12, 3.4.2, 3.5.2
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4, v3.2
    • Sprint:
      Repl 2017-01-23
    • Linked BF Score:
      0

      Description

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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: