keedio / flume-ftp-source

FTP network server is source of events for Apache-flume
80 stars 61 forks source link

Infinite number of connection retries on ftp server failure #11

Closed lucarosellini closed 9 years ago

lucarosellini commented 9 years ago

In Jenkins, when running EmbeddedFTPSourceTest.testFtpFailure, simulating the FTP server failure leads to an infinite number of connection retries, since the call to

ftpSourceUtils.connectToserver() 

(in https://github.com/keedio/flume-ftp-source/blob/1.0.1/src/main/java/org/apache/flume/source/FTPSource.java#L103), throws an exception and the counter is never incremented.