SERVER-138978ClosedFixed

Wait for mongos primary discovery after failover in live_shard_logical_initial_sync

On master, the [test|https://github.com/10gen/mongo/blob/master/jstests/sharding/live_shard_logical_initial_sync.js#L29-L31] still [writes|https://github.com/10gen/mongo/blob/f826fc5db8671a18184620430bff15e446f722b3/jstests/sharding/libs/sharding_state_test.js#L107] immediately after the [failover helper|https://github.com/10gen/mongo/blob/master/jstests/sharding/libs/sharding_state_test.js#L82-L93] returns. The helper waits for replica-set readiness, but not for mongos to recognize the new p

Affected Versions
Versions known to exhibit this issue
9.1.0-rc09.0.0
Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.