[SERVER-31355] Increase replica set size and stepdown period and decrease election timeout in auto_retry_on_network_error.js Created: 02/Oct/17  Updated: 30/Oct/23  Resolved: 04/Oct/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-30953 Add auto-retry logic to the mongo she... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 2017-10-23
Participants:
Linked BF Score: 0

 Description   

auto_retry_on_network_error.js, can fail with a NotMaster error when the same node is elected primary in successive terms. To decrease the frequency the test is failing at, add an extra node to the test's replica set, increase the replSetStepDown period, and decrease the election timeout to reduce the chance this happens. This should also significantly reduce the test's runtime.



 Comments   
Comment by Githook User [ 04/Oct/17 ]

Author:

{'email': 'max.hirschhorn@mongodb.com', 'name': 'Max Hirschhorn', 'username': 'visemet'}

Message: SERVER-31355 Synchronize stepdown in auto_retry_on_network_error.js

Changes the test to wait for all client connections to be closed before
attempting to run commands on the replica set connection object.

Also introduces a failpoint to cause the server to hang after it has
updated its member state to SECONDARY and before it has begun to close
all of its client connections.
Branch: master
https://github.com/mongodb/mongo/commit/d4eb562ac63717904f24de4a22e395070687bc62

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