Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2030

Allow observation of commands issued during mongoc_client_destroy()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.13.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      In order to allow observation of ServerClosedEvent and TopologyClosedEvent (PHPC-2023), php_phongo_pclient_destroy no longer clears APM callbacks unless PHP is already in request shutdown. This allows those SDAM events to be observed for request-scoped clients; however, they still cannot be observed for persistent clients since those are freed during GSHUTDOWN.

      With that change, it will now be possible to observe command monitoring events for commands issued during mongoc_client_destroy() (e.g. endSessions) for request-scoped clients. This will entail swapping the order in which Managers and clients are unregistered in php_phongo_manager_free_object.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: