Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1425

Expand fallback condition for $collStats to command form to account for ADF

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.7.0
    • Component/s: Shell API
    • Labels:
      None
    • 2
    • Not Needed
    • Iteration Edmontonia, Iteration Lambeosaurus, Iteration Pterodactyl, Iteration A (Apr 24-May 8)

      This was recently broken in 1.7.0.

      https://mongodb.slack.com/archives/CKNS6CS72/p1680249243187789

      Asking for collection stats with mongosh fails for me

       db.prescriptions_atlas.stats()
      MongoServerError: $collStats param 'storageStats' is not valid for Data Lake, correlationID = 175171aa0ed454ea77e0388a
      

      Looks like a parameter we need to support - Explicit $colllStats works (sorta)

      We already have a fallback mechanism in place for a specific error that can occur with timeseries collections, we should expand this to the case in which the server is unable to parse the request.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: