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

Balancer wrongly emit warning message in multiversion clusters

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 4.2.0, 4.4.0, 5.0.0, 6.0.0, 7.0.0, 7.2.0-rc0
    • None
    • ALL
    • CAR Team 2024-01-08, CAR Team 2024-01-22, CAR Team 2024-02-05, CAR Team 2024-02-19

    Description

      The balancer sporadically checks if all the shards in the cluster have the exact same binary version. When this is not the case, the balancer emits a warning log message.

      This has two problems:

      • Correctness:
        During upgrade/downgrade procedure is totally expected that the shards in the cluster will have a mismatching binary version, thus I believe is incorrect to emit a warning log message.
      • Performance:
        Even though the check is actually performed sporadically, the balancer collects the shards binary versions every round during construction of ClusterStatistics (this is actually done multiple times per round). The retrieval of binary version is done by executing the serverStatus command on all shard primaries, this is done serially. Thus, in a cluster with large number of shards, this can slow down significantly the balancer round.

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: