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

db.replSetInfo() issue with converting OpTimes to seconds

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.4.2, 2.5.0
    • Affects Version/s: 2.4.0
    • Component/s: Shell
    • None
    • Environment:
      ubuntu 12.04 LTS + mongodb 2.4 upgraded from 2.2.2
    • ALL
    • Hide

      upgrade mongodb using apt-get and 10gen repositories.

      use db.printReplicationInfo()...

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

      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)

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            miagao Luciano Issoe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: