[SERVER-30168] Make the _configsvrEnableSharding command idempotent Created: 17/Jul/17  Updated: 30/Oct/23  Resolved: 23/Jul/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.5.9
Fix Version/s: 3.5.11

Type: Bug Priority: Major - P3
Reporter: Jessica Yu Assignee: Jessica Yu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2017-07-31
Participants:

 Description   

All config server commands should be idempotent, to handle config server primary stepdown. Currently, enableSharding, a command in the process of being moved to config from mongos, returns an AlreadyInitialized error when there is an attempt to retry the command. This ticket should make the command return the same status as the first run.

Additionally, update the enableSharding unit test expecting the AlreadyInitialized error to reflect this change.



 Comments   
Comment by Githook User [ 22/Jul/17 ]

Author:

{u'name': u'Jessica Yu', u'email': u'jessica.yu@mongodb.com'}

Message: SERVER-29660 move the logic of the enableSharding into the new _configsvrEnableSharding command
SERVER-30168 Make the _configsvrEnableSharding command idempotent
Branch: master
https://github.com/mongodb/mongo/commit/0bef84ea178a17327e95ef07afb82c6948df1c1f

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