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

db.replSetInfo() issue with converting OpTimes to seconds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.2, 2.5.0
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      ubuntu 12.04 LTS + mongodb 2.4 upgraded from 2.2.2
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      upgrade mongodb using apt-get and 10gen repositories.

      use db.printReplicationInfo()...

      Show
      upgrade mongodb using apt-get and 10gen repositories. use db.printReplicationInfo()...

      Description

      When runnign db.printReplicationInfo() from the mongo shel, it returns unreal dates:

      MongoDB shell version: 2.4.0
      connecting to: admin
      rs3:SECONDARY> db.printReplicationInfo()
      configured oplog size: 150000MB
      log length start to end: 431.84499999997206secs (0.12hrs)
      oplog first event time: Fri Jan 16 1970 18:45:42 GMT+0000 (UTC)
      oplog last event time: Fri Jan 16 1970 18:52:54 GMT+0000 (UTC)
      now: Fri Mar 22 2013 17:49:06 GMT+0000 (UTC)

      When connecting from a 2.2 client shell, it returns the correct dates:
      MongoDB shell version: 2.2.2
      connecting to: rs1-***.***.com/admin
      rs3:SECONDARY> db.printReplicationInfo()
      configured oplog size: 150000MB
      log length start to end: 431751secs (119.93hrs)
      oplog first event time: Sun Mar 17 2013 17:50:30 GMT+0000 (UTC)
      oplog last event time: Fri Mar 22 2013 17:46:21 GMT+0000 (UTC)
      now: Fri Mar 22 2013 17:48:32 GMT+0000 (UTC)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: