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

SFTP consumer logs WARN stacktrace on every move to .camel

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.17.5, 2.18.2
    • Fix Version/s: None
    • Component/s: camel-ftp
    • Labels:
    • Estimated Complexity:
      Unknown

      Description

      The fix commited for CAMEL-10712 adds additional WARN-level logging with exception stack trace for a normally occurring situation: an SFTP consumer issuing a "delete" of .camel/$file prior to moving the consumed $file there.

      GenericFileProcessStrategySupport.renameFile() tries to delete the "to" file prior to renaming, and rightly ignores the exception when the file does not (yet) exist. However SftpOperations.deleteFile() was modified in CAMEL-10712 to LOG.warn(e) before rethrowing. This is a regression in the logging and generates much noise.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              awood Anthony Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: