You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Ji Liu (JIRA)" <ji...@apache.org> on 2019/08/11 09:06:00 UTC

[jira] [Created] (ARROW-6199) [Java] Avro adapter avoid potential resource leak.

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)