Create shell helper to display the location of a collection

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 3
    • Iteration Zenith, Iteration A (Apr 21 - May 5), Iteration B (May 5 - May 16), Iteration C (May 19 - May 30), Iteration E (Jun 16 - 30)
    • Needed
    • Hide

      Adds a helper method - `collection.getShardLocation` that returns { shared: boolean, shards: string[] }` as response. It's a thin wrapper around the `$listClusterCatalog` agg stage and as such is only available for 8.0+ servers.

      Show
      Adds a helper method - `collection.getShardLocation` that returns { shared: boolean, shards: string[] }` as response. It's a thin wrapper around the `$listClusterCatalog` agg stage and as such is only available for 8.0+ servers.
    • Developer Tools

      In MongoDB 8.0 there will be an aggregation stage $listClusterCatalog that allows customers to fetch the location of a collection in a cluster. 

      It would be nice if customers could leverage use a shell helper to run the aggregation without having to construct a full pipeline to view the location of a collection.

      This has increased importance because in MongoDB 8.0 unsharded collections can reside on any shard in the cluster 

            Assignee:
            Nikola Irinchev
            Reporter:
            Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: