-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
QE 2025-03-03
When generating explain for SBE, we output two big strings:
slots - values of all slots that are set at the start of execution
stages - a detailed SBE plan
Currently they are just added as strings to a BSONObj.
However, we have seen evidence of some plans having more than 1 000 000 slots, which means just listing slots in format `s123456 = X` may take up megabytes, even with existing truncation of strings and containers.
We should improve this code to respect internalQueryExplainSizeThresholdBytes
Otherwise we can crash not only explain, but also mask errors in regular queries (see SERVER-98493)
- related to
-
SERVER-98493 Handle SBE plans with slots or stages string not fitting into internalQueryExplainSizeThresholdBytes
-
- Closed
-