[SERVER-84334] Introduce maintenance mode on ShardingState Created: 20/Dec/23  Updated: 25/Dec/23  Resolved: 22/Dec/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: 8.0-Make-All-Deployments-Sharded-Clusters, 8.0-Online-Transition-RS-To-Shard
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-84153 Sharded cluster fixture set up does n... Closed
Problem/Incident
Related
related to SERVER-84407 Complete TODO listed in SERVER-84334 Open
Backwards Compatibility: Fully Compatible
Sprint: CAR Team 2023-12-25, CAR Team 2024-01-08
Participants:
Linked BF Score: 35

 Description   

We are moving in the direction that ShardingState should be the only source of information related to the current and possible recovery state of a node with respect to the sharding subsystem.

This ticket is to introduce the concept of maintenance mode, which is to replace all checks for enabled(). As a follow-up ticket, most of the enabled() checks should go away.



 Comments   
Comment by Githook User [ 25/Dec/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-84334 Fix broken sharding_write_router_bm

GitOrigin-RevId: 75d817e0eb30b70e49f25bcc78ffee76363b90bd
Branch: master
https://github.com/mongodb/mongo/commit/91367328a6ba19302a99a6bbfd869a505b20b2bb

Comment by Githook User [ 23/Dec/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-84334 Fix typo in the comment of ShardingState::create_forTest_DO_NOT_USE

GitOrigin-RevId: 058c57764064bfe57b0d08dd850d6792ed64e2c0
Branch: master
https://github.com/mongodb/mongo/commit/d4f3c91eac13e8dad242cf0f052aa45779cd82d7

Comment by Githook User [ 22/Dec/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-84334 Introduce maintenance mode on ShardingState

GitOrigin-RevId: 572100552d5e6257b80d3966252a1cc27e55888e
Branch: master
https://github.com/mongodb/mongo/commit/3d069bb763bf511ad295effd57569505256853fb

Generated at Thu Feb 08 06:54:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.