Skip to content

max-messages-per-poll and max-fetch-size not working as expected #9124

Closed
@SimoneGiusso

Description

@SimoneGiusso

In what version(s) of Spring Integration are you seeing this issue?

6.2.4

Describe the bug

According to the documentation the following combination of values max-messages-per-poll=-1 and max-fetch-size=1 should have the following effect: the sftp synchronizer fetch all the files from sftp server but one at time. As soon as a file is downloaded, a message with the file as payload, is fired in the channel.

However with this setting, in a single pool, the synchronizer only fetch 1 file.

To Reproduce

Sftp server containing more than 1 files and max-messages-per-poll=-1 and max-fetch-size=1

Expected behavior

Fetch all the files and sent a message as soon as a file is downloaded.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions