mongodb / mongodb/support-tools
Collection & Index Stats Should Skip system.* Collections
@zhangyaoxing is already working on this.
Since Sep 17, 2025.
- Dominant language
- Go
- Stars
- 140
- Forks
- 154
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 2
Description
Running stats and index stats on the system.* collections can cause errors because of insufficient permission. The 3 roles listed in the README.md doesn't provide enough permission for this, neither do I think it makes any sense to run against these collections.
Without legacy shell it doesn't cause any problem because the legacy shell print the error without throwing any exception. While with the mongosh, this kind of errors will break the script.
As stats doesn't make sense on these system collections, I propose we should skip them.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.