-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL: Fix usage of already released null block in ValueSourceReaderOperator #126411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
ac04e86
d8d94a9
e9784e1
040fd39
78e47b4
3de2dcd
f443a82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 126411 | ||
| summary: Fix usage of already released null block in `ValueSourceReaderOperator` | ||
| area: ES|QL | ||
| type: bug | ||
| issues: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -681,7 +681,12 @@ public BlockLoader.Builder nulls(int expectedCount) { | |
|
|
||
| @Override | ||
| public Block constantNulls() { | ||
| if (nullBlock == null) { | ||
| // Avoid creating a new null block if we already have one. | ||
| // However, downstream operators take ownership of the null block we hand to them and may close it, forcing us to create a new | ||
| // one. | ||
| // This could be avoided altogether if this factory itself kept a reference to the null block, but we'd have to also ensure | ||
| // to release this block once the factory is not used anymore. | ||
|
||
| if (nullBlock == null || nullBlock.isReleased()) { | ||
| nullBlock = factory.newConstantNullBlock(pageSize); | ||
| } else { | ||
| nullBlock.incRef(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.