Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-459

Cursor operations socket mismatch for ReplSetConnection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.4
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None

      Description

      For ReplSetConnect defaults, the cursor sends the initial query using the read preferences, which by default is primary with checkout of a socket from the writer pool. On cursor close, the driver currently specifies sending a messages to a reader, which is a mismatch as there are separate sockets for a thread in the each of the writer and reader pools.

      The fix for this is complicated since the current receive_message has a socket specifier, while the current send_message does not have a socket specifier, instead has a pool specifier.

      Bug received from customer report CS-3781

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tyler@10gen.com Tyler Brock
              Reporter:
              gjmurakami Gary Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: