You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2013/08/29 00:47:52 UTC
[jira] [Created] (ACCUMULO-1676) Potential resource leak in
RBlockState ctor due to un-closed streams
Ted Yu created ACCUMULO-1676:
--------------------------------
Summary: 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