Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Complete
    • Affects Version/s: 2.1.1
    • Fix Version/s: 3.0 M2
    • Component/s: FTP/SFTP Support
    • Labels:

      Description

      There is an issue with the FTP inbound channel adapter. It doesn't process files that were already processed before. This is fine, however after a reboot of the application they get picked up anyway.

      What we see is that the files are taken from the FTP and put in the local directory put no message is send which would trigger further processing in the integration flow. However since they are kept in the local folder, after a reboot of the application the component has forgotten this and sees a file in the local directory for which it will create a message triggering further processing.

        Issue Links

          Activity

          Hide
          Gary Russell added a comment -

          That, indeed, is the default behavior. The default FileReadingMessageSource gets an AcceptOnceFileListFilter which keeps its state in memory. We would need to provide a mechanism whereby you can at least inject a custom FileListFilter but maybe we should provide a version of that filter that keeps state in a persistent store.

          I am going to turn this into a 'New Feature' to make the local filter configurable; I will also make this a subtask of a new issue, to provide a MessageStore-backed filter that will maintain state over JVM restarts.

          Show
          Gary Russell added a comment - That, indeed, is the default behavior. The default FileReadingMessageSource gets an AcceptOnceFileListFilter which keeps its state in memory. We would need to provide a mechanism whereby you can at least inject a custom FileListFilter but maybe we should provide a version of that filter that keeps state in a persistent store. I am going to turn this into a 'New Feature' to make the local filter configurable; I will also make this a subtask of a new issue, to provide a MessageStore -backed filter that will maintain state over JVM restarts.
          Show
          Gary Russell added a comment - PR: https://github.com/SpringSource/spring-integration/pull/789
          Hide
          Gunnar Hillert added a comment -

          PR merged.

          Show
          Gunnar Hillert added a comment - PR merged.
          Hide
          Pavel Tcholakov added a comment -

          Yay!

          Show
          Pavel Tcholakov added a comment - Yay!

            People

            • Assignee:
              Gary Russell
              Reporter:
              David Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: