Skip to content

[Java] Avro adapter avoid potential resource leak. #22590

@asfimport

Description

@asfimport

Currently, avro consumer interface has no close API, which may cause resource leak like AvroBytesConsumer#cacheBuffer.

To resolve this, make consumer extends AutoCloseable and create CompositeAvroConsumer to encompasses consume and close logic. 

Reporter: Ji Liu / @tianchen92
Assignee: Ji Liu / @tianchen92

PRs and other links:

Note: This issue was originally created as ARROW-6199. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions