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

Zombie writes from failing $merge should not be able to re-create a collection

    • Query Execution
    • ALL
    • Query 2019-09-23, Query 2019-10-07, Query 2019-10-21, Query 2019-11-04, QO 2022-08-22, QO 2022-09-05, QO 2022-09-19, QO 2022-10-03, QE 2022-10-31, QE 2022-11-14, QE 2022-11-28, QE 2022-12-12

      SERVER-38852 describes a general problem of lingering operations which is probably much harder to solve. While investigating that we realized that $merge's writes are actually allowing an implicit creation of a collection. This may have been intentional to get the auto-create behavior for $merge, but it would be more robust to have the collection explicitly created, and that should be achievable.

        1. attempted_reproduction.js
          2 kB
        2. zombie_killer.patch
          15 kB

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: