-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Catalog and Routing
-
ALL
-
3
The moveChunk command doesn't remove the collection entry from the local catalog after moving the last chunk to another shard.
This can cause some problems specially when we remove a shard and afterwards we add it back (HELP-30325): the addShard command might fail because the shard that we are trying to add has a database that already exists on the sharded cluster. This DB shouldn't exist on the shard, because as part of the removeShard command we migrated all its data to other shards. However, since we didn't remove the collection entry after moving the last chunk, the shard has a set of empty (orphan?) collections that are visible through a listDatabases cmd.
- related to
-
SERVER-62310 collMod command not sent to all shards for a sharded collection if no chunks have been received
- Closed
-
SERVER-77837 Locally drop drained databases in transitionToDedicatedConfigServer
- Closed