[SERVER-41632] db.collection.getShardDistribution() shows NaN Created: 11/Jun/19 Updated: 29/Oct/23 Resolved: 01/Jul/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding, Shell |
| Affects Version/s: | 3.6.3 |
| Fix Version/s: | 4.0.11, 4.2.0-rc5, 4.3.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Gilad Peleg | Assignee: | Randolph Tan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng, sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v4.2, v4.0
|
||||
| Steps To Reproduce: |
|
||||
| Participants: | |||||
| Description |
|
Running `db.collection.getShardDistribution()` when collection has no documents shows `NaN` in several aggregations:
|
| Comments |
| Comment by Githook User [ 12/Jul/19 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit 83a0d0d890e375dfafe0e464f3f56fbdedf5189e) |
| Comment by Githook User [ 09/Jul/19 ] |
|
Author: {'name': 'Randolph Tan', 'username': 'renctan', 'email': 'randolph@10gen.com'}Message: (cherry picked from commit 83a0d0d890e375dfafe0e464f3f56fbdedf5189e) |
| Comment by Gilad Peleg [ 02/Jul/19 ] |
|
Amazing job, thanks! |
| Comment by Githook User [ 01/Jul/19 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: |
| Comment by Danny Hatcher (Inactive) [ 11/Jun/19 ] |
|
Hello Gilad, Thanks for the report. I've forwarded it along to the appropriate team. Danny |