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

ReshardingTest#shutdownAndRestartPrimaryOnShard does not refresh ShardingTest connections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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 Unassigned
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: