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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.6
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 2
    • Not Needed
    • Iteration Johannesburg

      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

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

              Created:
              Updated:
              Resolved: