You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Dzianis Sokal (JIRA)" <ji...@apache.org> on 2014/09/25 14:05:34 UTC
[jira] [Created] (HADOOP-11136) FTPInputStream should close wrapped
stream
Dzianis Sokal created HADOOP-11136:
--------------------------------------
Summary: FTPInputStream should close wrapped stream
Key: HADOOP-11136
URL: https://issues.apache.org/jira/browse/HADOOP-11136
Project: Hadoop Common
Issue Type: Improvement
Components: fs
Reporter: Dzianis Sokal
This is reproducible in PASSIVE FTP mode, which is not supported by now(HADOOP-11135). However if we hack FTPFileSystem to enter into local passive mode, it will hang on client.completePendingCommand() in FTPInputStream line 114:
{code}
...
public synchronized void close() throws IOException {
...
boolean cmdCompleted = client.completePendingCommand();
...
{code}
Going to completePendingCommand() docs I see that the stream should be closed before calling it. So seems like stream should be closed
{code}
wrappedStream.close();
{code}
right before
{code}
boolean cmdCompleted = client.completePendingCommand();
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)