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

FileInputStream potentially unclosed in scalability Run.java

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.1, 1.8.0
    • Component/s: test
    • Labels:

      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

            • Assignee:
              elserj Josh Elser
              Reporter:
              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