Hi team,
Following up on CAMEL-23931 — thank you for the quick resolution. We have a
closely related follow-up ask.

*Our use case:*
We need two guarantees from the SFTP consumer:

   - Pick up files in oldest-first order (addressed by preSort=modified in
   4.22)
   - Only pick up files that have been stable on the server for a minimum
   duration — skip files that are still being written

*The gap:*
Camel already provides readLockMinAge which is exactly the right semantic
for requirement 2. However, it is only supported with readLock=changed. We
use a custom locking strategy and cannot use readLockMinAge at all. As a
result we maintain a custom stability tracker — a size-snapshot mechanism
that checks file size across consecutive poll cycles and gates processing
until the size has been unchanged for the configured interval.

*The ask:*
Would it be feasible to expose a min-age filter at the same level as
preSort — operating on the SftpRemoteFile[] array before any lock strategy
is involved? Since this sits upstream of lock acquisition it would be
lock-strategy-agnostic and work alongside any custom locking. Combined with
preSort=modified this would give us oldest-stable-file-first natively and
let us remove all custom stability-tracking.

Happy to raise a JIRA if the team considers this viable.


Thanks,
Manikanta L N Bandaru

Reply via email to