-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
ALL
-
v3.6, v3.4, v3.2
-
TIG 2018-02-12
-
0
else if (cmdName === "mapReduce") { var stages = obj.pipeline; const lastStage = stages && Array.isArray(stages) && (stages.length !== 0) ? stages[stages.length - 1] : undefined; const hasOut = lastStage && (typeof lastStage === 'object') && lastStage.hasOwnProperty('$out'); if (hasOut) { forceWriteConcern = true; } }
It should instead check to see whether {out: {inline: 1}} was specified similar to what is being done in set_read_preference_secondary.js. We should also define some helper functions for determining whether the command object is (a) an "aggregate" command with a $out stage, or (b) a "mapReduce" (or "mapreduce") command with non-inline output to avoid duplicating logic across both set_read_and_write_concerns.js and set_read_preference_secondary.js.
- is depended on by
-
SERVER-32691 Create passthrough for w="majority" with 2-node replica set to address lost test coverage
- Closed
- is duplicated by
-
SERVER-21012 Update read majority passthrough to override Mongo.prototype.runCommandWithMetadata
- Closed
- related to
-
SERVER-60823 runCommandWithRetries in JS test framework exceeds JS interpreter recursion limit
- Closed