Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12521

Document fullMetadata option for db.collection.getShardVersion() command

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            arnie.listhaus@mongodb.com Arnie Listhaus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago