-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
-
0.1
Description
The getShardVersion() command has an undocumented option to display additional information about the filter cache.
Note: at present (4.0) this option would only be available when running the getShardVersion command on the shard itself. SERVER-10720 would extend that functionality so that the command could be run via the mongos.
Here are some details from the code:
Passing 'fullMetadata: true' returns a BSON representation of the routing table cached on that shard
https://github.com/mongodb/mongo/blob/e4a459fbe87789725c8441800b44acab239ba290/src/mongo/db/s/get_shard_version_command.cpp#L116-L118
Example usage:
https://github.com/mongodb/mongo/blob/df4b070ac332a6ee45d95013227d752bfc32968b/jstests/sharding/hash_skey_split.js#L13
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- related to
-
SERVER-10720 Add a way for getShardVersion on mongos to return the full cached chunk distribution for a collection
- Closed