Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4994

Reimplement logging to srv_polling

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Logging

      Use Case

      As a driver engineer
      I want to add the new logger to the SRVPoller if NODE-4719 does not cover this case
      So that any errors in server polling can be reported

      Description

      Since we removed the legacy logger in NODE-4817, the SRVPoller no longer has the capacity to report any errors.

      Open questions

      • Should we add an SrvPollerFailure event to allow users to programatically keep track of server discovery?
      • Do other drivers worry about this type of failure?
      • What logging component would this go under?

      Acceptance Criteria

      Implementation Requirements

      • adds logging to the following methods
        • SrvPoller.failure
        • SrvPoller.schedule
      • Reimplement parentDomainMismatch method

      Testing Requirements

      • Unit tests to ensure that we capture a log message on any SrvPoller errors

            Assignee:
            Unassigned Unassigned
            Reporter:
            warren.james@mongodb.com Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: