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

FileInputStream potentially unclosed in scalability Run.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.7.0
    • 1.7.1, 1.8.0
    • test

    Description

          try {
            FileInputStream fis = new FileInputStream(sitePath);
            try {
              scaleProps.load(fis);
            } finally {
              fis.close();
            }
            fis = new FileInputStream(testPath);
            testProps.load(fis);
          } catch (Exception e) {
            log.error("Error loading config file.", e);
          }
      

      The second instance assigned to fis might not be closed.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m