You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Christopher Tubbs (JIRA)" <ji...@apache.org> on 2019/06/11 04:30:00 UTC

[jira] [Updated] (ACCUMULO-4816) DfsLogger.readHeaderAndReturnStream should return a Closeable

     [ https://issues.apache.org/jira/browse/ACCUMULO-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Tubbs updated ACCUMULO-4816:
----------------------------------------
    Fix Version/s:     (was: 2.0.0)

> DfsLogger.readHeaderAndReturnStream should return a Closeable
> -------------------------------------------------------------
>
>                 Key: ACCUMULO-4816
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4816
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Christopher Tubbs
>            Priority: Major
>
> With the change in https://github.com/apache/accumulo/pull/369, it reveals that there's a possible unclosed resource hidden in the object returned from DfsLogger.readHeaderAndReturnStream. This should return something which is a Closeable, so it can be used in a try-with-resources block and cleaned up properly just in case the extra stream allocates additional resources which need to be closed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)