[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: |
|
||||||||
| 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: (cherry picked from commit 2f45e32577306908cae95220b5c63600b04184e4) |
| Comment by Githook User [ 17/Feb/22 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: |