[DOCS-12521] Document fullMetadata option for db.collection.getShardVersion() command Created: 01/Mar/19  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Arnie Listhaus Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: docs-sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-10720 Add a way for getShardVersion on mong... Closed
Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769
Story Points: 0.1

 Description   

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



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 08:05:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.