Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5846

camel sftp disconnect due to noop/sendIgnore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Camel
    • None
    • % %
    • Hide

      A reproducer with two main methods is attached, one for a sample camel route and one for the jsch portion is provided

      Show
      A reproducer with two main methods is attached, one for a sample camel route and one for the jsch portion is provided
    • Sprint 6 - towards CR1

      The camel sftp poller, during prePollCheck, is calling:

      isConnected = getOperations().sendNoop();
      

      which is in turn calling jsch:

      public synchronized boolean sendNoop() throws GenericFileOperationFailedException {
              if (isConnected()) {
                  try {
                      session.sendIgnore();
                      return true;
                  } catch (Exception e) {
                      LOG.debug("SFTP session was closed. Ignoring this exception.", e);
                      return false;
                  }
              }
              return false;
          }
      

      On one SFTP server daemon (proftpd), this causes the server to close the connection and the polling stops.

      [ #0 - sftp://containersa:2222/] SftpConsumer                   TRACE prePollCheck on sftp://myuser@myvm:2222
      ...
      [ect thread containersa session] SftpOperations                 INFO  JSCH -> Disconnecting from myvm port 2222
      

            acosenti Andrea Cosentino
            rhn-support-shiggs Stephen Higgs
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: