Details
-
Sub-task
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
1.10.0
-
None
-
None
-
None
Description
See the "identical1" test case in DRILL-5266. Due to misconfiguration, the sort was given too little memory to make progress. An OOM error occurred when allocating an SV2.
In this scenario, the "converted" record batch is leaked.
Normally, a converted batch is added to the list of in-memory batches, then released on close(). But, in this case, the batch is only a local variable, and so leaks.
The code must release this batch in this condition.