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 2021/06/09 21:08:00 UTC
[jira] [Resolved] (ACCUMULO-2218) FunctionalTestUtils#readAll()
should close FileInputStream
[ https://issues.apache.org/jira/browse/ACCUMULO-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Tubbs resolved ACCUMULO-2218.
-----------------------------------------
Resolution: Not A Problem
The readAll method no longer exists in the form described by this issue. The code has changed significantly since this was initially reported. If there is still a problem, please open a new issue or PR at https://github.com/apache/accumulo
> 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
(v8.3.4#803005)