mongos collStats does not handle large values for scale

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-05-17
    • 157
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The mongos collStats command parses large values for the scale option in a less robust manner compared to mongod collStats.

      On the mongod, the scale option is parsed using code generated from the StorageStatsSpec IDL definition, which uses the more forgiving BSONElement::safeNumberInt(). The IDL generated code used BSONElement::safeNumberInt() which is more forgiving of large values.

              Assignee:
              Benety Goh
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: