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

Fix oplog size reporting by getReplicationInfo() and printReplicationInfo()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.6
    • Component/s: Shell API
    • Labels:
      None
    • Story Points:
      2
    • Documentation Changes:
      Not Needed
    • Sprint:
      Iteration Johannesburg

      Description

      Relevant slack thread: https://mongodb.slack.com/archives/CUHC9R8J0/p1629723535080100

      mongosh code: https://github.com/mongodb-js/mongosh/blob/94ca4d917c6eb52e92bfaf708c7b5d4bb90ef4db/packages/shell-api/src/database.ts#L1328-L1385

      legacy shell code: https://github.com/mongodb/mongo/blob/afdebef974ba087301976e32e36e78802cf89dc8/src/mongo/shell/db.js#L913-L978

      -> we should report both the configured size and the actual size in both printReplicationInfo() and getReplicationInfo(), and we should be using MB instead of bytes properly

        Attachments

          Activity

            People

            Assignee:
            anna.henningsen Anna Henningsen
            Reporter:
            alex.bevilacqua Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: