SERVER-134758ClosedFixed

validate command does not fail if schema non-compliant documents exist at validationLevel constraint

Since validationLevel constraint requires all documents to be compliant for optimizations to work, the existence of non-compliant documents on a primary should be treated as data corruption. the validate command should fail and trigger an AF. The optimizer and execution plans for queries will eventually rely on these schema constraints and could crash a node if they are not held, so it is better to catch it earlier when running the validate command periodically. The remediation would be to

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
repo-10gen-mongosage-auto