Ji Liu created ARROW-6199: ----------------------------- Summary: [Java] Avro adapter avoid potential resource leak. Key: ARROW-6199 URL: https://issues.apache.org/jira/browse/ARROW-6199 Project: Apache Arrow Issue Type: Bug Components: Java Reporter: Ji Liu Assignee: Ji Liu
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. -- This message was sent by Atlassian JIRA (v7.6.14#76016)