[SERVER-27461] Retry connecting to shut down primary until failure in shutdown_primary.js Created: 19/Dec/16 Updated: 05/Apr/17 Resolved: 20/Dec/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.12, 3.4.2, 3.5.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jack Mulrow | Assignee: | Jack Mulrow |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v3.4, v3.2
|
||||||||||||||||||||
| Sprint: | Repl 2017-01-23 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||
| Description |
|
Currently there is a race condition at the end of shutdown_primary.js. In a parallel shell, the primary node is issued a shutdown command, which causes the shell to exit with a network error during the shutdown process. Sometimes the error is thrown early enough that the primary can still be connected to, causing the test to fail. To account for this uncertainty, the test should retry connecting to the shutting down primary until it throws an error as expected (or times out, in which case the test would fail). |
| Comments |
| Comment by Githook User [ 29/Dec/16 ] |
|
Author: {u'username': u'jsmulrow', u'name': u'Jack Mulrow', u'email': u'jack.mulrow@mongodb.com'}Message: (cherry picked from commit 51995ca347ff3f201b1f316dfbc13940c7b2ea93) |
| Comment by Githook User [ 28/Dec/16 ] |
|
Author: {u'username': u'jsmulrow', u'name': u'Jack Mulrow', u'email': u'jack.mulrow@mongodb.com'}Message: (cherry picked from commit 51995ca347ff3f201b1f316dfbc13940c7b2ea93) |
| Comment by Githook User [ 20/Dec/16 ] |
|
Author: {u'name': u'Jack Mulrow', u'email': u'jack.mulrow@mongodb.com'}Message: |