Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-80259

Add logging for stepping up services from ReplicaSetAwareServiceRegistry

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Replication
    • Fully Compatible
    • Repl 2023-09-04, Repl 2023-09-18

    Description

      While looking at BF-29617 I noticed a gap in logging we have in our stepup path which could help improve debugging in the future. In ReplicaSetAwareServiceRegistry::onStepUpComplete we rely on the individual services to log their status. If one of these services hung during stepup it would be very difficult to debug what was happening since most do not log any in onStepUpComplete.

      I propose we add 2 logs here, an info level log at the beginning of the function and a debug level log before we call onStepUpComplete on each service.

      This would be similar to killOpsForStorageEngineChange

      Attachments

        Activity

          People

            sean.zimmerman@mongodb.com Sean Zimmerman
            sean.zimmerman@mongodb.com Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: