davsclaus commented on code in PR #30576:
URL: https://github.com/apache/camel/pull/30576#discussion_r4658740520
##########
components/camel-file/src/main/java/org/apache/camel/component/file/cluster/FileLockClusterView.java:
##########
@@ -241,6 +257,42 @@ private HeldLock takeOver(long gen) {
private void closeInternal() {
releaseFileLock();
closeLockFiles();
+ unregisterLockPath(lockPathKey);
+ lockPathKey = null;
Review Comment:
Added the comment as suggested in e0ea8f7322f5. Checked: `closeInternal()`
is only called from `doStart()` under `contextStartLock`, and the first
`scheduleTryLock(true, gen)` comes after that critical section.
_Claude Code on behalf of Claus Ibsen (davsclaus)_
--
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]