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

Add basic retry for failure scenarios

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: 2.1.0
    • Component/s: Server Selection
    • Labels:
      None
    • Fully Compatible

      The server selection specification allows for some basic retry scenarios which should be implemented:

      • repeating server selection if, after selection, a socket is determined to be unsuitable before a message is sent on it
      • for a read operation, after a socket error, selecting a new server meeting the read preference and resending the query
      • for a write operation, after a "not master" error, selecting a new server (to locate the primary) and resending the write operation

        1. 6c493cb.log
          162 kB
        2. log_snip.txt
          16 kB

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: