[ 
https://issues.apache.org/jira/browse/HADOOP-11774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386294#comment-14386294
 ] 

Haris AL commented on HADOOP-11774:
-----------------------------------

FTPFileSystem.disconnect() internally calls FTPClient->logout() and 
FTPClient->disconnect(). Both these methods throws Exceptions.If a connection 
exception happens, we are likely not being able to connect with FTP Server. 
calling logout() will try to connect to FTP server again and access resources.

> listStatus in FTPFileSystem fails with connection reset
> -------------------------------------------------------
>
>                 Key: HADOOP-11774
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11774
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.3.0
>         Environment: Remote FTP located in Windows NT FTP
>            Reporter: Krishnamoorthy Dharmalingam
>
> Following exception trace raised when FTPFileSystem.listStatus() called in 
> Passive/active mode.
> Caused by: java.net.SocketException: Connection reset
>       at java.net.SocketInputStream.read(SocketInputStream.java:196)
>       at java.net.SocketInputStream.read(SocketInputStream.java:122)
>       at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
>       at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at java.io.BufferedReader.fill(BufferedReader.java:154)
>       at java.io.BufferedReader.read(BufferedReader.java:175)
>       at 
> org.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)
>       at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:310)
>       at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:290)
>       at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:479)
>       at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:552)
>       at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:601)
>       at org.apache.commons.net.ftp.FTP.quit(FTP.java:809)
>       at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:979)
>       at 
> org.apache.hadoop.fs.ftp.FTPFileSystem.disconnect(FTPFileSystem.java:151)
>       at 
> org.apache.hadoop.fs.ftp.FTPFileSystem.getFileStatus(FTPFileSystem.java:395)
>       at org.apache.hadoop.fs.FileSystem.isFile(FileSystem.java:1424)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to