[SERVER-3512] removeShard improvements for dbs where shard is primary Created: 01/Aug/11  Updated: 12/Jul/16  Resolved: 04/Oct/11

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

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

1) if shard is primary on 'local' remove it's entry in config.databases
2) better error message listing databases that need to be moved manually

This will probably also need some doc work here http://www.mongodb.org/display/DOCS/removeshard+command



 Comments   
Comment by Remon van Vliet [ 04/Nov/11 ]

What is the reasoning behind not moving sharded database out of the shard that's being retired automatically? I can't think of any use case where you'd want something else.

Comment by auto [ 04/Oct/11 ]

Author:

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

Message: List DBs that need to move in removeShard output SERVER-3512
Branch: master
https://github.com/mongodb/mongo/commit/3ad01731f68c49690f61bf6df808b79c8e37e990

Comment by auto [ 04/Oct/11 ]

Author:

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

Message: removeShard removes local from config.databases if owned by shard to remove SERVER-3512
Branch: master
https://github.com/mongodb/mongo/commit/8e9cebc95ef51a12a658eddd62a7bd8ff5028c18

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