-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
ALL
-
v3.4, v3.2
-
0
The test occasionally fails because the high priority node steps up before the low priority node is elected. We can increase the stepDownGuard in priority_takeover_one_node_higher_priority.js to 10 * electionTimeoutMillis, then explicitly end the stepdown period on the high priority node with replSetFreeze after the low priority node is elected to avoid the test taking longer.