-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Sharding NYC
-
Fully Compatible
-
ALL
-
Sharding NYC 2023-04-17
-
154
Currently, the SdamServerSelector has the logic to ignore the minClusterTime in the readPreference given to it if the timestamp is not satisfiable. When constructing the effective readPreference, it only gives 'pref' to the constructor. Consequently, the other configurations such as 'tags', 'maxStalenessSeconds', and 'hedgingMode' all get lost. For shard remote targeting at least, minClusterTime is only specified when the shard is the config shard. Prior to PM-2290, there probably isn't a case where the config server is targeted with readPreference that contains tags and so on. That might be why this issue never surfaced. Starting from PM-2290, this is a bug that needs to be addressed since it can result in the external client readPreference not being fully respected (as shown in BF-27925),
- is related to
-
SERVER-68440 In server selection, tags are deleted from the ReadPreference if minOpTime is specified and all servers are stale
- Closed
-
SERVER-74415 SdamServerSelector Does Not Respect ReadPreference minClusterTime
- Closed
- related to
-
SERVER-74281 Only attach minClusterTime read preference for sharding catalog operations
- Closed