You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Christopher Tubbs (JIRA)" <ji...@apache.org> on 2016/08/11 22:49:22 UTC
[jira] [Updated] (ACCUMULO-3868) FileInputStream potentially
unclosed in scalability Run.java
[ https://issues.apache.org/jira/browse/ACCUMULO-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Tubbs updated ACCUMULO-3868:
----------------------------------------
Fix Version/s: (was: 2.0.0)
1.8.0
> 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
> Labels: coverity
> Fix For: 1.7.1, 1.8.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {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)