-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
ALL
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Another similar instance of the issue from AF-16798, this time using division instead of subtraction. When estimating index bounds we call estimate(OIL) and use that result in a division operation here, but in estimate(OIL) the CE value returned is chosen by taking the approximate min between the calculated cardinality and _inputCard , which can trip the tassert in the division operator if the value returned is actually larger than _inputCard.
The fix is the same as in SERVER-125501, use strict comparison instead of the approximate comparison operators.
- is related to
-
SERVER-125501 Fix logical bug caused by fuzzy comparators in cardinality estimation of $skip nodes
-
- Closed
-
- related to
-
SERVER-125575 Inspect usage of the Estimates library and make it more resilient
-
- Closed
-
-
SERVER-125791 Replace Top::record exclusive mutex with shared_mutex and atomic counters
-
- In Code Review
-
-
SERVER-125525 Inspect usage of the Estimates library and make it more resilient
-
- In Progress
-