[SERVER-3318] [Shard] No offer possibility to drain all shard Created: 23/Jun/11  Updated: 12/Jul/16  Resolved: 13/Sep/11

Status: Closed
Project: Core Server
Component/s: Admin, Sharding
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Trivial - P5
Reporter: Yann Verry Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

removeShard


Participants:

 Description   

Hi,

When I play with sharding I add/remove shard, all work fine.
If I remove all shard at the same time, all are in draining mode and my shard is broken (data available but no admin way to solve this situation).
I know this is stupid but if it's impossible to go in this situation by add restriction it's better no ?



 Comments   
Comment by auto [ 13/Sep/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Prevent removeShard command from putting cluster into bad state SERVER-3318
Branch: master
https://github.com/mongodb/mongo/commit/75f2d53c1f0667e9b5cfab2ecfe71e22f1d6742d

Comment by Eliot Horowitz (Inactive) [ 23/Jun/11 ]

You should only be able to drain one shard at a time.

Generated at Thu Feb 08 03:02:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.