Skip to content

Don't make RemoteFileUtils.makeDirectories syncronized #3370

@dongja3

Description

@dongja3

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions