[SERVER-27249] Create passthrough hook to fail and restart fixture if primary node is not primary Created: 01/Dec/16  Updated: 29/Jan/18  Resolved: 11/Dec/17

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

Type: Improvement Priority: Major - P3
Reporter: Judah Schvimer Assignee: Kevin Albertson
Resolution: Done Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-12-18
Participants:
Linked BF Score: 0

 Description   

Passthroughs expect one node to be primary the entire time. When that node steps down, it leads to multiple test failures with "not master" until the fixture is restarted. If we added a simple hook that checks if the primary is still primary, and if not fails and restarts the fixture, failures in these passthroughs would be easier to diagnose.
Example: https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_jsCore_small_oplog_rs_initsync_static_b88aa488a196fff387d443fc2e8c08f3bb6fed2d_16_12_01_01_55_55



 Comments   
Comment by Githook User [ 08/Dec/17 ]

Author:

{'name': 'Kevin Albertson', 'username': 'kevinAlbs', 'email': 'kevin.albertson@10gen.com'}

Message: SERVER-27249 add hook to check primary unchanged
Branch: master
https://github.com/mongodb/mongo/commit/9c9b303b1a480b0238a95f9ba058ddbf67db9834

Comment by Max Hirschhorn [ 01/Dec/17 ]

Rather than restarting the fixture, I think it would be appropriate to raise a resmokelib.errors.ServerFailure and abort test execution.

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