Details
Description
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.