-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
In what version(s) of Spring Integration are you seeing this issue?
5.3.1.RELEASE
Describe the bug
It caused by org.springframework.integration.file.remote.RemoteFileUtils#makeDirectories, which is synchronized static method, when there are lots of (S)ftp move operation concurrently and slow speed of network, all requests of AbstractRemoteFileOutboundGateway#mv are queued and observed as very slow speed.
https://stackoverflow.com/questions/62772002/outbound-gateway-executes-the-mv-command-very-slowly
Expected behavior
in api doc, RemoteFileUtils#makeDirectories is static not synchronized,
https://docs.spring.io/spring-integration/docs/5.3.1.RELEASE/api/
However, in source code is static and syncronized.