Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-2330

DataInputStream should be closed in finally block in SegmentIndexFileStore#readIndexFile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

          DataInputStream dataInputStream =
              FileFactory.getDataInputStream(indexFilePath, FileFactory.getFileType(indexFilePath));
          byte[] bytes = new byte[(int) indexFile.getSize()];
          dataInputStream.readFully(bytes);
      ...
          dataInputStream.close();
      

      The close call should be placed inside finally block.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: