[SERVER-15507] Shell cannot parse large Timestamp Created: 02/Oct/14  Updated: 14/Apr/16  Resolved: 29/Oct/15

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Adinoyi Omuya Assignee: Geert Bosch
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-15508 Do not rollover negative timestamp va... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QuInt B (11/02/15)
Participants:

 Description   

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" }


Generated at Thu Feb 08 03:38:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.