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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: