db.collection.getShardDistribution() should give a warning rather than report collection is not sharded

XMLWordPrintableJSON

    • Not Needed

      Running db.collection.getShardDistribution() directly on a shard primary reports Collection X.Y is not sharded. even though it is. Running via a mongos correctly reports shard information.

      I think when running directly on a node, Mongo shell should instead respond "This command should be run via a mongos" or "Please connect to a mongos before calling this function"

            Assignee:
            Unassigned
            Reporter:
            Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: