-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
v4.2
-
Sharding 2019-10-21, Sharding 2019-11-04
-
19
Problem Statement
Dropping a collection directly from a shard on a sharded cluster is not a supported action. If one drops a collection directly while a migration is happening for that collection, issues can arise. Such as the following:
If a collection/db is dropped from the recipient shard after it finishes cloning from the donor shard, it's possible that the migration still commits. The config will still think the recipient shard owns the chunk from the migration, but the shard will not know about the collection at all.
Fix
Change the linked test to drop the collection against the mongos instead of the shard.
- is related to
-
SERVER-44886 Remove and re-add shard test wait time is inconsistent with registry refresh timeout
- Closed
- related to
-
SERVER-41764 Shard can be removed while an ongoing migration is happening
- Closed