$out targeting moved unsharded collection should create the new collection on the same shard

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.0.0, 8.2.0
    • Component/s: None
    • None
    • Catalog and Routing
    • 3
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      Scenario:

      1. Shard A is the primay shard for db
      2. Unsharded db.coll has been placed on shard B (via moveCollection)
      3. $out writing to the same collection db.coll creates it on shard A (that is the primary shard) rather than shard B (that is the shard it used to live on).

      This ticket is to ensure that $out recreates the unsharded collection on the same shard as it existed before.

            Assignee:
            Unassigned
            Reporter:
            Renato Riccio
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: