-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Client
-
None
-
Fully Compatible
The replica set node selection and retry logic is extremely hard to debug, and has very little logging in the node selection codepaths. We need to add better logging here to make it clear what decisions are being made by the replica set connections and monitor in terms of selecting nodes (with tags, readprefs, etc.) and what information we're using there.