[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:
Backports
Depends
Related
is related to SERVER-27056 Don't enforce data freshness for step... Closed
is related to SERVER-27118 Default shutdown command's 'timeoutSe... Closed
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: SERVER-27461 Retry connecting to shut down primary until failure in shutdown_primary.js

(cherry picked from commit 51995ca347ff3f201b1f316dfbc13940c7b2ea93)
Branch: v3.2
https://github.com/mongodb/mongo/commit/6673eaeacc7fb115b1174226377a1b6a484e1fc5

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: SERVER-27461 Retry connecting to shut down primary until failure in shutdown_primary.js

(cherry picked from commit 51995ca347ff3f201b1f316dfbc13940c7b2ea93)
Branch: v3.4
https://github.com/mongodb/mongo/commit/3f25ef37d23677bd85a80d01ee23334523dc20d4

Comment by Githook User [ 20/Dec/16 ]

Author:

{u'name': u'Jack Mulrow', u'email': u'jack.mulrow@mongodb.com'}

Message: SERVER-27461 Retry connecting to shut down primary until failure in shutdown_primary.js
Branch: master
https://github.com/mongodb/mongo/commit/51995ca347ff3f201b1f316dfbc13940c7b2ea93

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