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