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

Verify that implementation of cross-database $out attaches writeConcern appropriately in sharded environments

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Minor Change
    • v4.4
    • Query 2020-03-09, Query 2020-03-23

      The implementation of $out involves calling several sub-routines like creating a temporary collection, getting the index and collection options, doing the inserts, and renaming the collection into place. In SERVER-45968 we verified these work correctly in a replica set deployment, but we have separate implementations of these helpers on a shard server, which should similarly attach writeConcern.

      SERVER-45968 wrote a javascript integration test which verifies the aggregate and $out machinery above this layer will propagate the error appropriately to the client. As such, it's probably sufficient to just write unit tests to verify the remote requests all have the appropriate writeConcern attached. Another javascript test would also be acceptable though if unit testing proves difficult.

            Assignee:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Reporter:
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: