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

Improve confusing Balancer log messages

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Sharding

    Description

      When you have a new primary, it starts up the balancer thread. Before starting regular balancing, it tries to recover any migrations that were abandoned when the previous primary stepped down. But the logging for this is poor.

      The message "CSRS balancer thread is recovered" (in balancer.cpp) is confusing. Particularly when it doesn't actually recover anything, or it's the first term of the replica set and there was no previous primary. What is being recovered is never explained.

      Perhaps adding counters to the recovery functions so that we know whether anything happened, and explaining what 'recovered' or 'recovering' actually mean.

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: