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

Defragmentation jstest utils should handle empty shards

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0, 5.3.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.3
    • Sharding EMEA 2022-02-21
    • 64

      The defragmentation utils check for oversized chunks as a part of confirming that defragmentation was successful. These checks are performed by getting the per-shard average object size and multiplying that by the count of documents in a given chunk. If a shard has only empty chunks from the collection, collstats will not return a value for average object size for that shard, leading the calculation of chunk size to be NaN * 0 = NaN.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: