[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: |
|
||||
| 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. |
| Comments |
| Comment by Githook User [ 08/Dec/17 ] |
|
Author: {'name': 'Kevin Albertson', 'username': 'kevinAlbs', 'email': 'kevin.albertson@10gen.com'}Message: |
| 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. |