[SERVER-47190] Shutdown command with force:true should ignore all stepdown errors Created: 30/Mar/20  Updated: 29/Oct/23  Resolved: 22/Apr/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.2.7, 4.4.0-rc4, 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Documented
is documented by DOCS-13609 Investigate changes in SERVER-47190: ... Closed
Related
is related to SERVER-32679 shutdown command fails on single node... Backlog
is related to SERVER-81115 ReplicaSetAwareService Can Be Shutdow... Investigating
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Repl 2020-04-20, Repl 2020-05-04
Participants:

 Description   

The shutdown command returns an error if stepdown fails with any error code other than NotMaster, even if force:true is specified. This can fail with InterruptedDueToReplStateChange if there is a concurrent stepdown in progress, since it kills user operations that take certain locks. In contrast, signal-based shutdown ignores all stepdown errors and proceeds with the shutdown. It is expected that shutdown with force:true would always shut down the server, so we should make it behave like signal-based shutdown.



 Comments   
Comment by Githook User [ 06/May/20 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-47190: Shutdown command with force:true should ignore all stepdown errors

(cherry picked from commit 1563ac389bdcb08aadeb31705b2cc123742b739b)
(cherry picked from commit f60e93dd7ff8c7c9876d54e9c3c66b141eb32f03)
Branch: v4.2
https://github.com/mongodb/mongo/commit/ff38a192f588a01718f0ca259c147707819bd4cb

Comment by Githook User [ 04/May/20 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-47190: Shutdown command with force:true should ignore all stepdown errors

(cherry picked from commit 1563ac389bdcb08aadeb31705b2cc123742b739b)
Branch: v4.4
https://github.com/mongodb/mongo/commit/f60e93dd7ff8c7c9876d54e9c3c66b141eb32f03

Comment by Githook User [ 22/Apr/20 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-47190: Shutdown command with force:true should ignore all stepdown errors
Branch: master
https://github.com/mongodb/mongo/commit/1563ac389bdcb08aadeb31705b2cc123742b739b

Comment by Siyuan Zhou [ 09/Apr/20 ]

SERVER-32679 shows a bug in the same code area and may affect the testing of this ticket.

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