Skip to content

fix(compute): fix data race and memory leak in concurrent is_in kernel - #712

Merged
zeroshade merged 1 commit into
apache:mainfrom
laskoviymishka:fix-memory-leak
Mar 15, 2026
Merged

zeroshade merged 1 commit into
apache:mainfrom
laskoviymishka:fix-memory-leak

Conversation

@laskoviymishka

Copy link
Copy Markdown
Contributor

by cleaning up SetLookupState via per-invocation ctx.State instead of shared kernel.Data

fix: apache/iceberg-go/issues/489

Rationale for this change

fix: apache/iceberg-go/issues/489 (flaky test in iceberg-go)

What changes are included in this PR?

fix data race and memory leak in concurrent is_in kernel

Are these changes tested?

yes, added a test to repro memory leak (3/10 runs fails)

Are there any user-facing changes?

by cleaning up SetLookupState via per-invocation ctx.State instead of shared kernel.Data

fix: apache/iceberg-go/issues/489
@laskoviymishka
laskoviymishka marked this pull request as ready for review March 15, 2026 22:08

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AH, that's the cause of that flakiness.... Thanks!!

@zeroshade
zeroshade merged commit 7ae2e33 into apache:main Mar 15, 2026
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: TestScanner/TestIsInFilterTable

2 participants