[SERVER-10251] JsobjTests::OIDTests::ToDate failed on Nightly Linux 64-bit SSL Amazon AMI Created: 18/Jul/13  Updated: 11/Jul/16  Resolved: 12/Sep/13

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Bug Priority: Minor - P4
Reporter: Matt Kangas Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

buildbot Nightly Linux 64-bit SSL Amazon AMI Build #558


Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

What happened here?

Drew, is this similar to your fix in b1830ddbacbf for SERVER-10110?

Nightly Linux 64-bit SSL Amazon AMI Build #558 July 18 (rev beb5a898a)

http://buildbot-special.10gen.com/builders/Nightly%20Linux%2064-bit%20SSL%20Amazon%20AMI/builds/558/steps/test_1/logs/stdio
http://buildlogs.mongodb.org/Nightly%20Linux%2064-bit%20SSL%20Amazon%20AMI/builds/558/test/js/test

Thu Jul 18 07:02:39.453 [testsuite] jsobj                | tests:   95 | fails:    1 | assert calls:  77388
	JsobjTests::OIDTests::ToDate	Expected: oid.asDateT() >= before @src/mongo/dbtests/jsobjtests.cpp:1243
 
Thu Jul 18 07:02:39.454 [testsuite] TOTALS               | tests: 2456 | fails:    1 | assert calls: 532904606



 Comments   
Comment by auto [ 12/Sep/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-10251 Make OID date/time accessor test deterministic
Branch: master
https://github.com/mongodb/mongo/commit/3631059a2ad3714159e064db453463c9410aabe1

Comment by Matt Kangas [ 21/Aug/13 ]

Assuming this is a poorly implemented test per Drew's analysis. Bumping to 2.5.3.

Comment by Andrew Morrow (Inactive) [ 18/Jul/13 ]

Looks like a similar issue to me. The test assumes that sleeping for a second will advance the clock, and seems to also suffer from the assumption that jsTime() and ::time are the same clock. I'm not saying they are or aren't, but still seems like a poor assumption as the implementation of OID::init could change.

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