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

Make $out behave the same in replicaset and sharded cluster when db does not exists

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • ALL

      On replicaset if we send an aggregation with a $out stage with a namespace for which the database haven't been created yet, the database will be created implicitly as part of the $out execution.

      On the other hand, if the same query is processed by a router in a sharded cluster, the aggregation will fail with NamesapceNotFound error.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: