-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(shell-api): Account for orphan documents count in getShardDistribution() helper MONGOSH-1838 #2203
Merged
Merged
feat(shell-api): Account for orphan documents count in getShardDistribution() helper MONGOSH-1838 #2203
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
41846d1
shard WIP
gagik 2cf6ff2
First fix attempt
gagik bdc0ed2
Avoid doing it inside the promise
gagik a93ee79
Use timeseries as a fallback
gagik a108d21
Use 0 count for timeseries
gagik a2fa6b4
Fix type error and tests
gagik 86081e4
Fix comment
gagik 20a81bc
WIP
gagik f6c2ad2
Better comment
gagik da8641f
Combine helpers
gagik 09647d0
Switch to NaN as a result
gagik d693ab2
Nicer error message
gagik e895d65
Fix old unit test
gagik bf1f643
Use different DB and collection names
gagik 37b7da1
Merge branch 'gagik/add-sharded-time-series-getshard' of github.com:m…
gagik 59e6f25
update collection.spec.ts, collection.ts and result.ts
gagik 3295799
Merge branch 'main' of github.com:mongodb-js/mongosh into gagik/get-s…
gagik b6eda2c
Remove old op spec
gagik aa2eb4b
Merge branch 'main' into gagik/get-shard-orphan-documents
gagik af1d9a0
Cleaner calculation
gagik c203775
Update to match test
gagik bdff836
Account for invalid avgObjSize
gagik 9edd6e7
Use template literals and cleaner size calculation
gagik 61f57da
Merge branch 'main' into gagik/get-shard-orphan-documents
gagik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on:
https://github.com/mongodb/mongo/blob/d3313627b309a13a0a8050e2cf16b784b4c1ded3/jstests/sharding/sharded_data_distribution.js#L60