[SERVER-22491] replace db.serverStatus().uptimeEstimate test in dbadmin.js with C++ test Created: 05/Feb/16  Updated: 04/Jan/17  Resolved: 16/Feb/16

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 3.2.10, 3.3.2

Type: Task Priority: Major - P3
Reporter: Matt Cotter Assignee: Matt Cotter
Resolution: Done Votes: 0
Labels: bkp, test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.2
Sprint: Platforms 10 (02/19/16)
Participants:
Linked BF Score: 0

 Description   

The elapsed time in the server status is an estimate and can't reliably pass the

assert.lt( 2 , after.uptimeEstimate , "up1" )

check in dbadmin.js

Instead, make a Listener test to compare the getElapsedTimeMillis to a real wall-clock.



 Comments   
Comment by Matt Cotter [ 30/Aug/16 ]

Done!

Comment by Githook User [ 30/Aug/16 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}

Message: SERVER-22491 relax uptimeEstimate js test

In the original commit, there was a c++ test added, but that test later
was removed when time keeping logic was extracted from the listener.
This backport only removes the bug from the js test (which was the
reason for backporting anyway).

(cherry picked from commit 84b8780894544f1301d92b65075c16da175b4acb)
Branch: v3.2
https://github.com/mongodb/mongo/commit/7b4a038a591722844b81dfc3a02365ba3e364a2b

Comment by Justin Cohler [ 29/Aug/16 ]

matt.cotter it looks like this ticket needs to be backported to 3.2.

Comment by Githook User [ 16/Feb/16 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}

Message: SERVER-22491 join listener thread before ending the test
Branch: master
https://github.com/mongodb/mongo/commit/3125749c23f8cf341768ecc37c86e64a2c30a356

Comment by Githook User [ 11/Feb/16 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}

Message: SERVER-22491 replace uptimeEstimate js test with C++ test

This adds a Listen C++ test to check getElapsedTimeMillis against
the wall-clock.
Branch: master
https://github.com/mongodb/mongo/commit/84b8780894544f1301d92b65075c16da175b4acb

Generated at Thu Feb 08 04:00:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.