freeStorageSize is not propagated in db.coll.stats() when using the $collStats stage

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell API
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • None
    • Developer Tools

      It seems that when we do the mapping of fields from the new format of $collStats, we don't propagate all relevant fields in the output. In this `if` it seems we are missing the `freeStorageSize`.

      https://github.com/mongodb-js/mongosh/blob/f9a0631268eaef5b4e441c837d7dec2e0893a21d/packages/shell-api/src/collection.ts#L1718

      We likely want to take a look at other fields we might be missing too.

              Assignee:
              Unassigned
              Reporter:
              Kevin Mas Ruiz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: