[SERVER-21698] Add error-checking for isMaster() return values in jstests/libs/election_timing_test.js Created: 30/Nov/15  Updated: 18/Nov/16  Resolved: 05/Feb/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.4, 3.3.2

Type: Task Priority: Minor - P4
Reporter: Kamran K. Assignee: Michael Grundy
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG D (12/11/15), TIG E (01/08/16), TIG F (01/29/16), TIG 10 (02/19/16)
Participants:
Linked BF Score: 0

 Description   

There was a build failure in Evergreen with this error:

[js_test:election_timing] 2015-11-17T20:55:53.190+0000 2015-11-17T20:55:53.190+0000 E QUERY    [thread1] Error: first argument to bsonWoCompare must be an object :
[js_test:election_timing] 2015-11-17T20:55:53.190+0000 ElectionTimingTest.prototype._runTimingTest@jstests/libs/election_timing_test.js:134:17
[js_test:election_timing] 2015-11-17T20:55:53.190+0000 ElectionTimingTest@jstests/libs/election_timing_test.js:46:5
[js_test:election_timing] 2015-11-17T20:55:53.190+0000 @jstests\replsets\election_timing.js:62:23
[js_test:election_timing] 2015-11-17T20:55:53.190+0000 @jstests\replsets\election_timing.js:61:5
[js_test:election_timing] 2015-11-17T20:55:53.190+0000 @jstests\replsets\election_timing.js:4:2

We should add error-checking for the isMaster() return values to make it easier to debug failures in the future.



 Comments   
Comment by Githook User [ 18/Feb/16 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-21698 Add error-checking for isMaster() return values in jstests/libs/election_timing_test.js

(cherry picked from commit cbb49ce74204c4b6804bf5110cfb02013f0123e2)
Branch: v3.2
https://github.com/mongodb/mongo/commit/46508d1823e9fd991a5d5cc230e5a3b263052141

Comment by Githook User [ 05/Feb/16 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-21698 Add error-checking for isMaster() return values in jstests/libs/election_timing_test.js
Branch: master
https://github.com/mongodb/mongo/commit/cbb49ce74204c4b6804bf5110cfb02013f0123e2

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