[SERVER-43988] shutdown ({force:false}) should refuse to shut down if there is an index build in progress Created: 14/Oct/19  Updated: 29/Oct/23  Resolved: 21/Jan/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: shutdown
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-13354 Investigate changes in SERVER-43988: ... Closed
Related
related to SERVER-39218 Simultaneous index builds improvement... Closed
related to SERVER-49215 Differentiate internal idents used fo... Closed
is related to SERVER-42525 Single-node replica sets shouldn't wa... Closed
is related to SERVER-16377 Require 'force' argument to stepdown ... Closed
is related to SERVER-3695 Running shutdown command on Primary w... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-01-27
Participants:
Linked BF Score: 0

 Description   

If a user attempts to shut down the server using the shutdown command without the force: true option while there is an index build in progress, we should reject the shutdown request. This reduces the possibility of losing any progress we have made, especially with long running index builds.



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

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-43988 shutdown with

{force: false}

should refuse to shut down the server if there is an index build in progress
Branch: master
https://github.com/mongodb/mongo/commit/fab432034d039421e82555be6bbcc43fc4fe7891

Comment by Githook User [ 19/Jan/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-43988 shutdown with

{force: false}

lists active index builds
Branch: master
https://github.com/mongodb/mongo/commit/8f1a363b05c25b0887c46fc49569977f3e876e35

Comment by Githook User [ 18/Jan/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-43988 IndexBuildsCoordinator::forEachIndexBuild() logs index build method
Branch: master
https://github.com/mongodb/mongo/commit/e9f4b9da40f5a24d220121d879b521d631a06159

Comment by Githook User [ 17/Jan/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-43988 add js tests for running the shutdown command while index builds are in progress

create mode 100644 jstests/noPassthrough/index_shutdown_cmd_primary.js
create mode 100644 jstests/noPassthrough/index_shutdown_cmd_secondary.js
Branch: master
https://github.com/mongodb/mongo/commit/cf458ca506bebc420abc1a5ce8a763a61d8f17dc

Comment by Eric Milkie [ 14/Oct/19 ]

When shutdown is prevented due to this condition, we should make sure the error message has enough information in it to help the user diagnose the problem and to mitigate it.

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