[COMPASS-7590] Filter out views from the list of collections before gathering collection stats Created: 26/Jan/24  Updated: 26/Jan/24

Status: Needs Triage
Project: Compass
Component/s: Collection
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Himanshu Singh Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Fix
Assigned Teams:
Developer Tools
Story Points: 3

 Description   

Problem Statement/Rationale

As reported in the linked ticket HELP-54789, gathering collection stats for a view pops up a CommandNotSupportedOnView error in mongo server log.

We should investigate filtering out views before gathering collection stats for our collections since it is also well documented that - Performing $collStats with the storageStats option on a view results in an error.

Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell

Steps to Reproduce

  1. Create a view on a database
  2. Open Compass and go to collection list of the database where you created the view
  3. Check mongo server logs for the error CommandNotSupportedOnView

Expected Results

Compass should not gather collection stats for a view

Actual Results

Compass is gathering collection status for a view

Additional Notes


Generated at Wed Feb 07 22:47:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.