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

CMAP inconsistency when clearing load balanced pools

    • Not Needed

      DRIVERS-1942 added the following clarification to the CMAP spec section describing the "Clearing a Connection Pool" method:

      This method MUST NOT be used in load balancer mode.

      If the pool.clear() method is not used, then load balanced pools will never emit PoolClearedEvents. However, there is a load balancer spec test which asserts that a PoolClearedEvent is emitted after a connection handshake failure:
      https://github.com/mongodb/specifications/blob/008d2f5/source/load-balancers/tests/sdam-error-handling.yml#L175-L205

      What should a driver do when clearing a load balanced pool without a serviceId (eg when the initial hello command fails)? Is the load balancer test simply out of date?

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: