[SERVER-33229] Overload startParallelShell in auto_retry_on_network_error.js to connect after loading the auto_retry_on_network_error.js override Created: 09/Feb/18 Updated: 29/Oct/23 Resolved: 27/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 3.6.3 |
| Fix Version/s: | 4.0.20, 4.4.0-rc4, 4.2.9, 3.6.20, 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jack Mulrow | Assignee: | Jack Mulrow |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | open_todo_in_code, sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.4, v4.2, v4.0, v3.6
|
||||||||
| Sprint: | Sharding 2020-04-20, Sharding 2020-05-04 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 12 | ||||||||
| Description |
|
In the retryable_writes_jscore_stepdown_passthrough, startParallelShell is called with the connection string of the underlying replica set, so it immediately calls connect to set the global db object. If there is a stepdown during connect, the test will fail, because the auto_retry_on_network_error.js override is not loaded yet. This was also a problem for the main test shell, and it was fixed by starting the shell with --nodb and passing an eval string that calls connect after loading the auto_retry passthrough. startParallelShell should be overriden in auto_retry_on_network_error.js to do the same thing. |
| Comments |
| Comment by Githook User [ 16/Jul/20 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: (cherry picked from commit 1df41757d5d1e04c51eeeee786a17b005e025b93) |
| Comment by Githook User [ 16/Jul/20 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: (cherry picked from commit 1df41757d5d1e04c51eeeee786a17b005e025b93) |
| Comment by Githook User [ 16/Jul/20 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: (cherry picked from commit 1df41757d5d1e04c51eeeee786a17b005e025b93) |
| Comment by Githook User [ 30/Apr/20 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: (cherry picked from commit 1df41757d5d1e04c51eeeee786a17b005e025b93) |
| Comment by Githook User [ 27/Apr/20 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: |