Background & Motivation
Cursor getMore and killCursors operations must target the same server that produced the cursor ID.
Currently, the default read preference of primaryPreferred is included in the getMore and killCursors.
This can be surprising to users logging CommandStarted events.
The specifications do not note expected behavior with passing read preference to getMore and killCursors. PYTHON-2059 notes a similar report for PyMongo.
See the attached main.go for a reproducible example.
Scope
- Omit read preference from getMore and killCursors commands.
- is related to
-
PYTHON-2059 getmore explicitly sets readPreference to primary even when connection set secondary
- Closed