-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 2020-10-19
As of now, inserts are disallowed on a collection with ".system" in the collection name. A current exception is config.cache.chunks.config.system.sessions, since that collection must be writable as part of the replicated chunk metadata collection. We must also allow the resharding temporary collection's chunk metadata collection to be modified. The temporary resharding collection follows this pattern:
For a db <db> and a collection with UUID <uuid>,
<db>.system.resharding.<uuid>
and the chunk metadata collection would be:
config.cache.chunks.<db>.system.resharding.<uuid>
So to capture both collections and to avoid being more permissive than the current collection name restrictions with regards to other collections matching ".system.", we should follow roughly this code:
if (ns.coll().find(".system.resharding.") != std::string::npos) { return Status::OK(); }
- is depended on by
-
SERVER-51209 Fill in missing gaps in Resharding workflow to complete Milestone 1
- Closed
-
SERVER-51210 Call setInitialChunksAndZones from the config server reshardCollection command
- Closed