Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1956

getMore and killCursors commands incorrectly bypass server selection

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: