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

Option readLockLoggingLevel not working for SFTP changed read lock strategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.19.0, 2.22.0
    • 2.21.3, 2.22.2, 2.23.0
    • camel-ftp
    • None
    • Unknown

    Description

      method setReadLockLoggingLevel is not invoked in class SftpProcessStrategyFactory so logging level is always set to default (WARN)

       

      else if ("changed".equals(readLock)) {
          SftpChangedExclusiveReadLockStrategy readLockStrategy = new SftpChangedExclusiveReadLockStrategy();
          Long timeout = (Long) params.get("readLockTimeout");
          if (timeout != null) {
              readLockStrategy.setTimeout(timeout);
          }
          Long checkInterval = (Long) params.get("readLockCheckInterval");
          if (checkInterval != null) {
              readLockStrategy.setCheckInterval(checkInterval);
          }
          Long minLength = (Long) params.get("readLockMinLength");
          if (minLength != null) {
              readLockStrategy.setMinLength(minLength);
          }
          Long minAge = (Long) params.get("readLockMinAge");
          if (null != minAge) {
              readLockStrategy.setMinAge(minAge);
          }
          Boolean fastExistsCheck = (Boolean) params.get("fastExistsCheck");
          if (fastExistsCheck != null) {
              readLockStrategy.setFastExistsCheck(fastExistsCheck);
          }
          return readLockStrategy;
      }

      Attachments

        Activity

          People

            dmvolod Dmitry Volodin
            kolas Seweryn Walendzik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: