Balancer stats generation calls 'listDatabases' on shards without maxTimeMS or timeout

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.4.6, 3.5.9
    • Affects Version/s: 3.4.4, 3.5.8
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • Sharding 2017-06-19
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The sharding balancer's statistics generation uses shardutil::retrieveTotalShardSize on each round in order to retrieve the shard's storage utilization.

      This in turn calls listDatabases against the shard, but does not use maxTimeMS or timeout, which can cause the balancer to get stuck indefinitely.

            Assignee:
            Kaloian Manassiev
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: