[
https://issues.apache.org/jira/browse/CAMEL-20027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151646#comment-18151646
]
Claus Ibsen commented on CAMEL-20027:
-------------------------------------
[~anirudh04] sorry for the slow answer. The plan for 4.25:
* *Start of the wait:* minWaitTime counts from when the read lock starts to
check the file (the first check in that poll), not after minAge. Both must
hold: the file is at least minAge old, and Camel has watched it for at least
minWaitTime.
* *Change check:* yes. When minWaitTime is set, the size and the timestamp are
checked for changes during that time, also when minAge is set. Without
minWaitTime, minAge works as today (only the timestamp is compared), so
existing routes don't change.
This covers a file that is copied with its original timestamp kept: it passes
minAge at once, but its size still grows during the copy. The changed read lock
of the ftp and sftp components should get the same option. You are welcome to
work on it.
_Claude Code on behalf of davsclaus_
> camel-file - Read lock changed - Add option for minWaitTime
> -----------------------------------------------------------
>
> Key: CAMEL-20027
> URL: https://issues.apache.org/jira/browse/CAMEL-20027
> Project: Camel
> Issue Type: Improvement
> Components: camel-file
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> The changed that causes some problems has been reverted. See CAMEL-20023.
> For users that want the "new broken behaviour" we could have a new option to
> set a minimum-wait-time.
> This can be needed for users that copy files with preserve old timestamp, and
> the copy operation is slow and still in progress.
> Then the minimum-wait-time can be used to keep cycling and detecting file
> changes (size) as the timestamp is preserved and stay constant.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)