When reading a file with operations
get,
getAsAttachment and
mget, a check is done to verify if the file is locked or not by another program. If the file is locked, the operation is blocked until the file can be locked by the BC FileTransfer. And so timeout can occurs.
New locked file management:
- for operations 'get' and 'getAsAttachment', if the file is locked, we wait few seconds before to return an error. The error returned is a fault to be able to manage it in a process point of view.
- for operation 'mget', if a file is locked, we wait few seconds before to skip the file and continue with other files matching file patterns. No error is raised.
The waiting time could be set at SU level: '
locking-wait-time', defined in seconds. This waiting time is checked per period defined by '
locking-poll-interval' in milliseconds.
If not set at SU level, the global configuration at component level is used: '
locking-wait-time' and '
locking-poll-interval'.
Default value at component level:
- locking-wait-time: 5seconds,
- locking-poll-interval: 1000ms
Component level parameters can be changed at runtime.