Skip to content

[Java] Mark new allocated ArrowSchema as released #43996

@viirya

Description

@viirya

Describe the enhancement requested

Currently a newly allocated ArrowArray will be marked as released, but ArrowSchema is not.

We have been bitten by this in apache/datafusion-comet#905 when a ArrowSchema passed from JVM to native is dropped that invokes uninitiated value in the release slot which causes SIGSEGV.

It is safer to mark newly allocated ArrowSchema as released following ArrowArray.

Component(s)

Java

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions