Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2371

cachedDataIndex.close() should be enclosed in finally block in BCFile#Reader()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None

    Description

      Here is related code:

              try {
                dataIndex = new DataIndex(cachedDataIndex);
              } catch (IOException e) {
                LOG.error("Got IOException when trying to create DataIndex block");
                throw e;
              }
              cachedDataIndex.close();
      

      If there is IOE, cachedDataIndex.close() would be skipped.

      Attachments

        Activity

          People

            ecn Eric C. Newton
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: