gnodet-bot commented on code in PR #30910: URL: https://github.com/apache/camel/pull/30910#discussion_r4716754137
########## docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc: ########## @@ -1562,6 +1562,17 @@ file consumer no longer adds the key to the idempotent repository eagerly, and ` read lock adds it when it acquires the lock. Since Camel 4.7 the read lock was refused, and such a consumer never consumed a file. +=== camel-file - a stopping idempotent read lock releases its delayed read locks at once + +With `readLock=idempotent` or `idempotent-changed` and `readLockIdempotentReleaseAsync=true`, the read locks whose +release still waits for `readLockIdempotentReleaseDelay` are released when the consumer stops, at once. Before, with the +pool Camel creates, the stop waited for them for up to 30 seconds, and a release still pending after that was dropped: +its key stayed in the idempotent repository, so the file was never picked up again (with a persistent or clustered +repository, not even after a restart). With `readLockRemoveOnCommit=true`, the keys of the files a stopping node +committed in the last `readLockIdempotentReleaseDelay` millis are now removed before the delay is over. +This also applies with a `readLockIdempotentReleaseExecutorService` of your own, which Camel does not shut down: +there nothing was dropped before, and the pending releases now run at the stop instead of when their delay is over. Review Comment: 💬 **Nit:** "there nothing was dropped" reads as a sentence fragment. Add a comma after "there" to make it grammatically correct: ```suggestion there, nothing was dropped before, and the pending releases now run at the stop instead of when their delay is over. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
