mongodb / mongodb/support-tools

Collection & Index Stats Should Skip system.* Collections

Open
#163 0 comments 0 reactions 1 assignee View on GitHub

@zhangyaoxing is already working on this.

Since Sep 17, 2025.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.