Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7590

Filter out views from the list of collections before gathering collection stats

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Collection
    • None
    • 3
    • Developer Tools

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            himanshu.singh@mongodb.com Himanshu Singh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: