As part of the fix for https://jira.mongodb.org/browse/SERVER-39019,
NotMatchExpression::serialize() takes one of two paths when serializing its children. Failure to take the old Nor branch in favor of the new implementation causes TextMatchExpression to hit a MONGO_UNREACHABLE since it inherits from PathMatchExpression.
We propose either updating TextMatchExpression so it doesn't derive from PathMatchExpression or adding a special case to NotMatchExpression::serialize() for TextMatchExpression children which takes the old Nor branch.
- related to
-
SERVER-40135 TextMatchExpressionBase should not derive from PathMatchExpression
- Backlog