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

Shell cannot parse large Timestamp

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Fully Compatible
    • ALL
    • QuInt B (11/02/15)

      Steps to reproduce:

      mongod-2.7.7-pre- test> db.dropDatabase();db.a.insert({a:Timestamp(-2, 3),b:"hello"})
      Inserted 1 record(s) in 127ms
      WriteResult({
        "nInserted": 1
      })
      
      mongod-2.7.7-pre- test> db.a.find()
      Error: 17355 Error converting Timestamp 4294967294000|3 in field a to a JS Timestamp object: Error: The first argument must be in seconds; 4294967294 is too large (max 2147483647)
      

      Dumping the collection and examining with bsondump reveals:

      { "_id" : ObjectId( "542d7d84f7ba5b99e472c84c" ), "a" : Timestamp( 4294967294, 3 ), "b" : "hello" }
      

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: