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/14 04:23:50 UTC
[jira] [Created] (ACCUMULO-2187) Scanner is left unclosed in
AddSplitsCommand#execute()
Ted Yu created ACCUMULO-2187:
--------------------------------
Summary: Scanner is left unclosed in AddSplitsCommand#execute()
Key: ACCUMULO-2187
URL: https://issues.apache.org/jira/browse/ACCUMULO-2187
Project: Accumulo
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
Here is related code:
{code}
java.util.Scanner file = new java.util.Scanner(new File(f));
while (file.hasNextLine()) {
line = file.nextLine();
if (!line.isEmpty()) {
splits.add(decode ? new Text(Base64.decodeBase64(line.getBytes())) : new Text(line));
}
}
{code}
file should be closed upon return.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)