You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Mikołaj Matejko (Jira)" <ji...@apache.org> on 2021/11/19 11:42:00 UTC
[jira] [Created] (CAMEL-17213) camel-sftp `maximumReconnectAttempts` property changed behaviour
Mikołaj Matejko created CAMEL-17213:
---------------------------------------
Summary: camel-sftp `maximumReconnectAttempts` property changed behaviour
Key: CAMEL-17213
URL: https://issues.apache.org/jira/browse/CAMEL-17213
Project: Camel
Issue Type: Bug
Components: camel-sftp
Affects Versions: 3.13.0
Reporter: Mikołaj Matejko
After upgrading from *Camel 3.11.3* to *Camel 3.13.0* we noticed that Camel cannot establish SFTP connection and throws an *`org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to`* exception.
By diving into it we found out that the cause is `{*}maximumReconnectAttempts{*}` property which we had set to 0.
before *Camel 3.13* -> *{{maximumReconnectAttempts}}* as the name says determined how many retries of connecting to sftp we should have (so setting it to 0 means we will try to connect once, and then we won’t try to reconnect in case of failure)
in *Camel 3.13* -> *{{maximumReconnectAttempts}}* means how many connections to sftp we should have, so setting it to 0 means that we will never try to establish the connection
To solve this for now we changed *{{maximumReconnectAttempts}}* to 1, however we noticed that *SftpOperations.java* was refactored and probably this bug was unintentionally introduced, as it doesn't seem as correct behavior.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)