accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-2218) FunctionalTestUtils#readAll() should close FileInputStream
Date Fri, 17 Jan 2014 19:06:21 GMT
Ted Yu created ACCUMULO-2218:
--------------------------------

             Summary: FunctionalTestUtils#readAll() should close FileInputStream
                 Key: ACCUMULO-2218
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2218
             Project: Accumulo
          Issue Type: Test
            Reporter: Ted Yu
            Priority: Minor


{code}
  static String readAll(MiniAccumuloClusterImpl c, Class<?> klass, Process p) throws
Exception {
    for (LogWriter writer : c.getLogWriters())
      writer.flush();
    return readAll(new FileInputStream(c.getConfig().getLogDir() + "/" + klass.getSimpleName()
+ "_" + p.hashCode() + ".out"));
{code}
The FileInputStream should be closed before returning.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message