Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17213

camel-sftp `maximumReconnectAttempts` property changed behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.13.0
    • 3.14.0
    • camel-sftp
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            matejkom Mikołaj Matejko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: