accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ACCUMULO-1676) Potential resource leak in RBlockState ctor due to un-closed streams
Date Fri, 13 Sep 2013 17:20:53 GMT

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

Ted Yu resolved ACCUMULO-1676.
------------------------------

    Resolution: Later
    
> Potential resource leak in RBlockState ctor due to un-closed streams
> --------------------------------------------------------------------
>
>                 Key: ACCUMULO-1676
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1676
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> In RBlockState ctor,
> {code}
>           DataInputStream tempDataInputStream = new DataInputStream(boundedRangeFileInputStream);
>           // Read the init vector from the front of the stream before initializing the
cipher stream
>           
>           int ivLength = tempDataInputStream.readInt();
>           byte[] initVector = new byte[ivLength];
>           tempDataInputStream.readFully(initVector);
> {code}
> tempDataInputStream should be closed.
> Closing boundedRangeFileInputStream and inputStreamToBeCompressed should be considered
as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message