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

Sequence connection setup (e.g. auth) events before command events using the connection

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently command monitoring publishes command started event for operations like find/insert before it has a socket to send the command on. Creating the socket involves other commands like auth, which leads to the following command monitoring event sequence:

      start find
      start saslstart
      success saslstart
      start saslcontinue
      success saslcontinue
      success find

      As a result of this, the time taken by find, for example, includes the time taken by auth as well.

      The driver should instead publish start of find after it has picked a connection, handshaked and authed it and published the auth events, so that command events are not nested.

            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: