You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/01/17 20:06:21 UTC

[jira] [Created] (ACCUMULO-2218) FunctionalTestUtils#readAll() should close FileInputStream

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)