-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.7, 3.0.0-rc7
-
Component/s: Aggregation Framework, Shell
-
Query Execution
-
ALL
-
When performing an aggregation via mongo shell with $OUT specified, write concern is handled in an inconsistent manner.
- Write concern change via db.setWriteConcern() or db.coll.setWriteConcern() is ignored for $OUT
- Write concern change via the settings.getLastErrorDefaults replica set config is respected under 2.6.7
- Write concern change via the settings.getLastErrorDefaults replica set config is not respected under 3.0.0-rc7
My expectation would be that both the setWriteConcern() method and the getLastErrorDefaults setting would be respected for $OUT, with setWriteConcern() taking precedence.