[SERVER-48107] Retry replSetStepDown in rollback_test.js Created: 11/May/20  Updated: 29/Oct/23  Resolved: 22/Jun/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.20, 4.2.9, 4.4.1, 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Xuerui Fa Assignee: Xuerui Fa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Repl 2020-06-01, Repl 2020-06-15, Repl 2020-06-29
Participants:
Linked BF Score: 8

 Description   

Currently, we check if the replSetStepDown in rollback_test.js throws an exception. It seems possible for the command to return an error, but not throw a JS exception (for instance, if it times out when trying to acquire the RSTL lock).

We should retry replSetStepDown if it returns an error.



 Comments   
Comment by Githook User [ 20/Aug/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-48107: Retry replSetStepDown in rollback_test.js

(cherry picked from commit 5edffc61e61b004811d7cde7728d9908aff4acc5)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ff1ff7df0e2c30b2c52030465ef5fbc7e31e90c1

Comment by Githook User [ 01/Jul/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-48107: Retry replSetStepDown in rollback_test.js

(cherry picked from commit 5edffc61e61b004811d7cde7728d9908aff4acc5)
Branch: v4.0
https://github.com/mongodb/mongo/commit/a3b551b01c186963e4dd33477277c6aa614eb883

Comment by Githook User [ 01/Jul/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-48107: Retry replSetStepDown in rollback_test.js

(cherry picked from commit 5edffc61e61b004811d7cde7728d9908aff4acc5)
Branch: v4.2
https://github.com/mongodb/mongo/commit/2dd3254906c09ad17b60cb2abe2ea16df0889e78

Comment by Githook User [ 22/Jun/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-48107: Retry replSetStepDown in rollback_test.js
Branch: master
https://github.com/mongodb/mongo/commit/5edffc61e61b004811d7cde7728d9908aff4acc5

Generated at Thu Feb 08 05:16:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.