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

Global event subscribers are copied into client's monitoring upon client construction

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Spec Comp
    • None

      According to my reading of the code, right now any global event subscribers (command monitoring specifically but probably applies to all events) are copied into each monitoring instance when the latter ones are created, ordinarily as part of client construction. This means adding global listeners will not invoke them for any events that are triggered by clients that exist prior to the global listener addition.

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: