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

Balancer pollutes logs in case no suitable recipient is found during draining

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • Affects Version/s: 4.2.0, 4.4.0, 5.0.0, 6.0.0, 7.0.0, 7.3.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v7.3, v7.2, v7.0, v6.0, v5.0, v4.4
    • CAR Team 2024-02-05

      The balancer emit a log message every time it fails to find a destination shard to move out chunks from a draining shard.

      The problem is that the balancer emits this log warning for every chunk to be drained. This means that potentially in one balnacer round (few secs) we could emit millions of logs leading the machine out of disk space.

      Another issue is that we should emit a warning only if we actually have some shard still available in this round (not already used in this balancing round) to receive chunks.
      If all the shards available are already in draining mode, it is expected that we can't find a recipient.

      I believe the same happens also in case no recipient can be found while enforcing zones.

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: