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

When removing nodes in tests, must take in to account automatic connection close

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2020-10-05, Repl 2020-10-19
    • 47

      Tests which expect to manipulate "REMOVED" nodes must take into account that removing a node will result in a disconnection if the connection is not marked hangUpOnStepDown: false.  This disconnection occurs a few milliseconds after the node is marked "REMOVED", so it's hard to simply take into account.  Best is probably to mark the test client connection with hangUpOnStepDown.

      This ticket covers fixing this problem for

      force_reconfig_skips_oplog_commitment.js

      initial_sync_succeeds_when_syncing_node_removed.js

      initial_sync_fails_when_syncing_node_removed.js

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: