You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/04/10 19:18:00 UTC

[jira] [Created] (CARBONDATA-2330) DataInputStream should be closed in finally block in SegmentIndexFileStore#readIndexFile

Ted Yu created CARBONDATA-2330:
----------------------------------

             Summary: DataInputStream should be closed in finally block in SegmentIndexFileStore#readIndexFile
                 Key: CARBONDATA-2330
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2330
             Project: CarbonData
          Issue Type: Bug
            Reporter: Ted Yu


{code}
    DataInputStream dataInputStream =
        FileFactory.getDataInputStream(indexFilePath, FileFactory.getFileType(indexFilePath));
    byte[] bytes = new byte[(int) indexFile.getSize()];
    dataInputStream.readFully(bytes);
...
    dataInputStream.close();
{code}
The close call should be placed inside finally block.



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