Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75091

db.getReplicationInfo() gives invalid output

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.2
    • Component/s: None
    • Labels:
    • Replication
    • ALL

      When you run db.getReplicationInfo() then the output is not valid. Result is like this:

      {
        configuredLogSizeMB: 990,
        logSizeMB: 990,
        usedMB: 980.21,
        timeDiff: NaN,
        timeDiffHours: NaN,
        tFirst: 'Invalid Date',
        tLast: 'Invalid Date',
        now: 'Tue Mar 21 2023 16:03:39 GMT+0100 (Mitteleuropäische Normalzeit)'
      }
       

      timeDiff, timeDiffHours, tFirst, tLast are invalid values.

      As workaround one can call rs.status() and compare optimeDate of members. However db.getReplicationInfo() should work as intended.

      Kind Regards
      Wernfried

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            wernfried.domscheit@sunrise.net Wernfried Domscheit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: