[SERVER-26903] ShardingTest is failing non-retriable writes when the primary steps down because the stepdown suite turns the electionTimeoutMillis down from 10,000 ms to 5,000 ms Created: 03/Nov/16  Updated: 05/Apr/17  Resolved: 08/Dec/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.4.2, 3.5.1

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-28547 sharding_continuous_config_stepdown s... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Sharding 2016-12-12, Sharding 2017-01-02
Participants:
Linked BF Score: 0

 Description   

ShardingTest is overriden in sharding_continuous_config_stepdown.js, which ups the verbosity and lowers the electionTimeoutMillis before running the regular ShardingTest and then finally starting the periodic stepdown afterwards.

One solution is to move the lowering of electionTimeoutMillis to 5,000 ms after ShardingTest runs. ShardingTest has non-retriable writes that can fail. Stepdown due to slow machines would be much less likely with electionTimeoutMillis default of 10,000 ms.

This commit moved lowering electionTimeoutMillis to before ShardingTest runs, because electionTimeoutMillis became settable via new configReplSetTestOptions. Prior to that improvement, electionTimeoutMillis was set after ShardingTest ran. There appears to be nothing preventing electionTimeoutMillis being set after ShardingTest, aside from costing an additional write.



 Comments   
Comment by Githook User [ 21/Dec/16 ]

Author:

{u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'}

Message: SERVER-26903 reduce electionTimeoutMillis in stepdown suite after ShardingTest runs

(cherry picked from commit 76dc485d830aaaad77c7d0302b62e4d3fb8d2ad8)
Branch: v3.4
https://github.com/mongodb/mongo/commit/a812f9df8841b615f2f12cd179d7209eed12f026

Comment by Githook User [ 08/Dec/16 ]

Author:

{u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'}

Message: SERVER-26903 reduce electionTimeoutMillis in stepdown suite after ShardingTest runs
Branch: master
https://github.com/mongodb/mongo/commit/76dc485d830aaaad77c7d0302b62e4d3fb8d2ad8

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