ReshardingTest#shutdownAndRestartPrimaryOnShard does not refresh ShardingTest connections

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ReshardingTest#_recipientShards and ReshardingTest#_donorShards both use the ShardingTest#shard{n} member variable, which is a replset connection to the shard node. However, it does not refresh it / make sure it gets reconnected again after shutdownAndRestartPrimaryOnShard is called. It should be doing to somethign similar with ShardingTest#restartShardRS to ensure that connections are ready to use without getting network errors.

      ReshardingTest#killAndRestartPrimaryOnShard also have a similar issue.

              Assignee:
              Unassigned
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: