Skip to content

fix(arrow/ipc): release reader state on schema errors - #1112

Merged
zeroshade merged 2 commits into
apache:mainfrom
fallintoplace:fix/ipc-reader-cleanup
Aug 7, 2026
Merged

fix(arrow/ipc): release reader state on schema errors#1112
zeroshade merged 2 commits into
apache:mainfrom
fallintoplace:fix/ipc-reader-cleanup

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

The IPC reader constructors retain reader state before schema initialization. When schema loading fails, they can return without releasing the message reader.

What changes are included in this PR?

Release the reader state on schema errors and recovered panics, and add a message reader that verifies the release call.

Are these changes tested?

  • go test ./arrow/ipc

Are there any user-facing changes?

No API changes. This corrects the reported behavior while preserving the existing ownership and compatibility contracts.

@fallintoplace fallintoplace changed the title fix(arrow/ipc): release readers after schema errors fix(arrow/ipc): release readers when schema loading fails Aug 5, 2026
@fallintoplace fallintoplace changed the title fix(arrow/ipc): release readers when schema loading fails fix(arrow/ipc): release reader state on schema errors Aug 6, 2026
@zeroshade
zeroshade merged commit 4278e86 into apache:main Aug 7, 2026
23 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.

2 participants