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)

Reply via email to