[SERVER-27811] Refactor catalog client classes to accommodate shards reading/writing to shard collections Created: 25/Jan/17  Updated: 27/Feb/17  Resolved: 27/Feb/17

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

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before SERVER-27704 Chunk metadata cache updates on the p... Closed
has to be done after SERVER-27860 Enable ShardLocal on shards Closed
has to be done after SERVER-27885 Create new function on Shard class to... Closed
has to be done after SERVER-27888 Add a ShardRegistry::getLocalShard() ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-02-13
Participants:

 Description   

ShardingCatalogManager handles metadata operations on the config server. Commands come to the config server, and a method on the catalogManager is usually called (or should be).

ShardingCatalogClient handles reading config server metadata, though it also currently manipulates config metadata because commands haven't been moved from the mongos to config server yet. The intention, however, is for it to be a reader.

Since shard chunk metadata will be written to shard config.chunks.uuid collections, we have a new category of operations. This ticket is to come up with a class structure proposal, then rename existing and create new classes, and implement methods to read and write to config.chunks.uuid. The new methods will roughly be:

std::vector<ChunkType> readShardChunks(OperationContext* txn, const NamespaceString& nss);
Status writeShardChunks(OperationContext* txn, std::vector<ChunkType> chunks);


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