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: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.0
    • Affects Version/s: 1.7.0
    • Component/s: Shell API
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Iteration Edmontonia, Iteration Lambeosaurus, Iteration Pterodactyl, Iteration Big Dipper, Iteration Ionosphere
    • Not Needed

      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:
            paula.stachova@mongodb.com Paula Stachova
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: