See the steps in "Steps To Reproduce" below.
A fix for this is to invoke server selection at the time of step 4 with a fresh view of the topology while synchronizing with the TopologyManager.
The topology views (and corresponding topology change events) are serialized, so at step 4 we would either see T0 or T and would block any future topology changes while R is being enqueued.
In the first case (we see T0), server selection would return no result, the request would be enqueued, and the query will be satisfied after T is applied to the topology manager.
In the second case (we see T), the query will be satisfied without enqueuing the request.
- is depended on by
-
SERVER-48925 Exclude servers with unknown server description in StreamableRSM's getMinWireVersion and getMaxWireVersion
- Closed