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

getMore and killCursors commands incorrectly bypass server selection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: