accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-3868) FileInputStream potentially unclosed in scalability Run.java
Date Fri, 29 May 2015 00:07:23 GMT
Josh Elser created ACCUMULO-3868:
------------------------------------

             Summary: FileInputStream potentially unclosed in scalability Run.java
                 Key: ACCUMULO-3868
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3868
             Project: Accumulo
          Issue Type: Bug
          Components: test
    Affects Versions: 1.7.0
            Reporter: Josh Elser
            Assignee: Josh Elser
            Priority: Trivial
             Fix For: 1.7.1, 2.0.0


{code}
    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);
    }
{code}

The second instance assigned to {{fis}} might not be closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message