Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75859

Unify behavior between mongod and mongos when running $collStats on a nonexistent database

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution

    Description

      On a mongod, running a $collStats aggregation on a nonexistent database returns a basic document with information about the namespace, the host's ip, and the local machine's time. Otherwise it returns no data about the nonexistent collection. On mongos, the same aggregation results in an error.

      The goal of this ticket is to unify the behavior. It is an open question what the result operation should include: host and localTime may not make sense in a mongos context as it may be routing between potentially multiple shards.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: