[ https://issues.apache.org/jira/browse/ACCUMULO-1676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760602#comment-13760602 ]
Ted Yu commented on ACCUMULO-1676: ---------------------------------- Planning to resolve this JIRA then. > 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