ESQL: can't increase refCount on already released object [ConstantNullBlock[...]] #125850
Labels
:Analytics/Compute Engine
Analytics in ES|QL
:Analytics/ES|QL
AKA ESQL
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Elasticsearch Version
main, 8.16.3
Installed Plugins
No response
Java Version
N/A
OS Version
N/A
Problem Description
Queries with union types of type boolean/keyword can lead to re-using an already released constant null block in the value source reader operator. This causes an illegal state exception and returns a 500 to the user.
The error may be in
ComputeBlockLoaderFactory.constantNulls()
(here), where we do not take into account that a constant null block that was once handed out may already have been consumed and closed downstream.Steps to Reproduce
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: