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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7.0.rc0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            oleg.pudeyev@mongodb.com Oleg Pudeyev
            oleg.pudeyev@mongodb.com Oleg Pudeyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: