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

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • QE 2024-03-18

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: