-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: Lambda
What problem are you facing?
The AbstractCursor maintains a reference to the server it is executing against, in someway a cursor does need to know which server to go back to for getMore commands, but instead of running getMore on that saved server. The cursor should instead run server selection (selecting only for the same server it holds a reference to) to make sure that it is still in a selectable state.
The current issue that arrises is that the saved server could have transitioned to Unknown between the time the find was sent and when it is time to send the getMore. It could be recovering, it could not be, but by running server selection we give the driver time to determine that.
What driver and relevant dependency versions are you using?
4.x driver
Steps to reproduce?
See linked ticket
- related to
-
GODRIVER-1956 getMore and killCursors commands incorrectly bypass server selection
- Backlog
-
CDRIVER-3563 Cursor may use an invalidated server description
- Closed
-
NODE-3536 Cached Driver in FAAS Environments
- Closed