Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3283

Log spamming from server monitor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11.0
    • Component/s: Monitoring
    • Labels:
      None

      Description

      The server monitor is written to log at INFO level only when relevant server state has changed. Mostly it does a good job, but there are spurious log messages in one particular case, when a replica set member has multiple tags. The server does not ensure that those tags are provided in the isMaster response in the same order every time, and every time it changes the driver sees it as a relevant server state change, and so logs it. This results in spurious messages like:

      ... INFO ...Monitor thread successfully connected to server with description ServerDescription...
      

      This could be fixed in the driver by ensuring a stable ordering of the tag sets (e.g. by sorting the tags by tag name)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: