SERVER-135599ClosedFixed

Invalidate plan cache when validator-inferred types change

Validator MatchExpression inference produces a SchemaTypeInfo containing inferred field types used by query planning optimizations. When the collection validator or validation level changes, these inferred types may become stale while existing cached plans continue to be reused. Update plan-cache invalidation so that changes to validator-derived inferred types invalidate affected cached plans. Initially, use collection-wide invalidation by reusing the existing collection cache invalidation me

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

No labels assigned.