Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2194

Clarify the order between server monitor events and connection pool events

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: SDAM
    • None
    • Needed

      This SDAM prose test implies the following order of events:

      1. step 2: ServerHeartbeatSucceededEvent happens before ConnectionPoolReadyEvent caused by it
      2. steps 4 and 5: ServerHeartbeatFailedEvent happens before ConnectionPoolReadyEvent caused by a successful check that happened after the check that caused ServerHeartbeatFailedEvent.

      However, neither SDAM more CMAP specs require any such ordering. Java driver recently recently started delivering server monitor events asynchronously (in a dedicated thread, together with server and cluster events). This change affected the aforementioned SDAM prose test: it started failing sporadically, and we disabled it. If the order implied by the test is indeed what the specifications require, the order should be explicitly and unambiguously specified either by SDAM or by CMAP specs.

            Assignee:
            Unassigned Unassigned
            Reporter:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: