-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
QE 2026-11-23, QE 2026-12-07
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Summary
Fixes the gating of the two-step strict -> constraint validationLevel upgrade so it cannot be reached while the collection's validation action permits non-conforming documents.
- prepareConstraintValidationLevel: true is now rejected unless the effective validationAction is an enforcing action (error or errorAndLog). Previously it could be set on a collection with validationAction: "warn", which let non-conforming documents keep entering the collection during the prepare phase.
- Upgrading validationLevel to constraint is now rejected when the collection's current validationAction is warn, even if the same collMod also sets validationAction: "error". Previously that transition was accepted, letting pre-existing non-conforming documents (admitted under warn) remain in place.
- is duplicated by
-
SERVER-136694 Constraint upgrade can succeed despite a concurrent update leaving an invalid document
-
- In Progress
-