hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzianis Sokal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-11136) FTPInputStream should close wrapped stream
Date Thu, 25 Sep 2014 12:05:34 GMT
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)

Mime
View raw message