-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Streaming remote files with a single file filter breaks fair
rotation of sources
#3315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
garyrussell
added a commit
to garyrussell/spring-integration
that referenced
this issue
Jul 1, 2020
Resolves spring-projects#3315 `maxFetchSize` ignored with filters supporting single file filtering (default). This breaks "fair" rotation with the `RotatingServerAdvice`. Honor `maxFetchSize`, even with filters that support single file filtering. **cherry-pick to 5.3.x, 5.2.x**
garyrussell
added a commit
to garyrussell/spring-integration
that referenced
this issue
Jul 1, 2020
Resolves spring-projects#3315 `maxFetchSize` ignored with filters supporting single file filtering (default). This breaks "fair" rotation with the `RotatingServerAdvice`. Honor `maxFetchSize`, even with filters that support single file filtering. **cherry-pick to 5.3.x, 5.2.x**
artembilan
pushed a commit
that referenced
this issue
Jul 1, 2020
Resolves #3315 `maxFetchSize` ignored with filters supporting single file filtering (default). This breaks "fair" rotation with the `RotatingServerAdvice`. Honor `maxFetchSize`, even with filters that support single file filtering. **cherry-pick to 5.3.x, 5.2.x**
artembilan
pushed a commit
that referenced
this issue
Jul 1, 2020
Resolves #3315 `maxFetchSize` ignored with filters supporting single file filtering (default). This breaks "fair" rotation with the `RotatingServerAdvice`. Honor `maxFetchSize`, even with filters that support single file filtering. **cherry-pick to 5.3.x, 5.2.x**
artembilan
pushed a commit
that referenced
this issue
Jul 1, 2020
Resolves #3315 `maxFetchSize` ignored with filters supporting single file filtering (default). This breaks "fair" rotation with the `RotatingServerAdvice`. Honor `maxFetchSize`, even with filters that support single file filtering. **cherry-pick to 5.3.x, 5.2.x** # Conflicts: # spring-integration-ftp/src/test/java/org/springframework/integration/ftp/inbound/RotatingServersTests.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
https://github.com/spring-projects/spring-integration/blame/master/spring-integration-file/src/main/java/org/springframework/integration/file/remote/AbstractRemoteFileStreamingMessageSource.java#L262. There may have been some changes here that affect the behavior of the fair rotation when streaming in the sftp source. Since we have SftpPersistentAcceptOnceFileListFilter configured, this supports single file filtering so maxFetch is ignored.
To Reproduce
Steps to reproduce the behavior.
Comment out this line https://github.com/dturanski/stream-applications-1/blob/sftp-source/functions/supplier/sftp-supplier/src/main/java/org/springframework/cloud/fn/supplier/sftp/SftpSupplierConfiguration.java#L160
Then run this test
https://github.com/dturanski/stream-applications-1/blob/sftp-source/functions/supplier/sftp-supplier/src/test/java/org/springframework/cloud/fn/supplier/sftp/SftpSupplierApplicationTests.java#L199
Expected behavior
The test should pass, verifying fair rotations
Sample
See above
The text was updated successfully, but these errors were encountered: