[GODRIVER-1956] getMore and killCursors commands incorrectly bypass server selection Created: 08/Apr/21  Updated: 27/Jun/23

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to NODE-3648 AbstractCursor getMores should run se... Closed

 Description   

The driver.BatchCursor type retains a reference to a driver.Server and uses driver.SingleServerDeployment to use it directly. There's no Cursors spec, but from speaking with engineers on other drivers, it seems that it's more robust to instead keep the address of the server on which the cursor exists and go through the full server selection process to find it, similar to what is done for session pinning. This ensures that we do not route getMore/killCursors commands to a server that has been marked Unknown.


Generated at Thu Feb 08 08:37:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.