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

Exceptions on routes SFTP and SEDA or DISRUPTOR (probably others)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15.3, 2.16.0
    • Component/s: camel-ftp
    • Labels:
      None
    • Environment:

      Camel running on Windows, polling Linux server.

    • Estimated Complexity:
      Moderate

      Description

      When polling from SFTP, if the exchanges are sent to asynchronous routes (seda, disruptor) many different types of exceptions happen everytime, when retrienving the content or deleting / moving / renaming the polled files.

      The cause is that when routes are executed asynchronously, concurrent calls to SftpOperations are made. It looks like SftpOperations as well as ChannelSftp (Jsch) are not thread-safe. Sftp commands are either colliding, and sometime are invalid at the protocol level.

      One workaround is to make SftpOperations thread-safe by making its methods synchronized.

      Maybe there is another better place for a fix but i leave that to the specialists.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              gegefr Gwenhaƫl PASQUIERS
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: