[SERVER-63721] Defragmentation jstest utils should handle empty shards Created: 16/Feb/22  Updated: 29/Oct/23  Resolved: 17/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0, 5.3.0-rc1

Type: Bug Priority: Major - P3
Reporter: Allison Easton Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.3
Sprint: Sharding EMEA 2022-02-21
Participants:
Linked BF Score: 64

 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.



 Comments   
Comment by Githook User [ 22/Feb/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-63721 Defragmentation jstest utils should handle empty shards

(cherry picked from commit 2f45e32577306908cae95220b5c63600b04184e4)
Branch: v5.3
https://github.com/mongodb/mongo/commit/3d862d11b0209a57d14de3d9eb829fa67a52176a

Comment by Githook User [ 17/Feb/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-63721 Defragmentation jstest utils should handle empty shards
Branch: master
https://github.com/mongodb/mongo/commit/2f45e32577306908cae95220b5c63600b04184e4

Generated at Thu Feb 08 05:58:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.