Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27811

Refactor catalog client classes to accommodate shards reading/writing to shard collections

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2017-02-13

      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);
      

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: