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

Numerous cluster connections in tx tests cleanup

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

      Currently at the end of transactions tests, the driver executes endSessions. This is done against the admin db and seemingly, each endSessions connects to the configured cluster individually meaning it performs a handshake (3 commands) for the one command to endSessions.

      This wastes significant time as well as resources (battery life). In the full suite it takes somewhere in the 20 second range to do this cleanup.

      Since endSessions accepts an array, perhaps there should be a single call instead of hundreds/thousands to end the sessions.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: