Claus Ibsen created CAMEL-27848:
-----------------------------------
Summary: camel-master: backOffDelay of 0 or less leaves the node
as leader without a consumer
Key: CAMEL-27848
URL: https://issues.apache.org/jira/browse/CAMEL-27848
Project: Camel
Issue Type: Bug
Components: camel-master
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-master for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31143).
This is a separate problem of the component; the descriptions change only
documents the current behavior.
h4. backOffDelay of 0 or less is not validated
{{MasterConsumer}} passes backOffDelay to
ScheduledThreadPoolExecutor.scheduleWithFixedDelay, which throws
IllegalArgumentException for 0 or less. The LeadershipListener passes it to the
ExceptionHandler ("Error starting consumer while taking leadership"), and the
node keeps the leadership but never starts the delegate.
Proposed change: reject a value of 0 or less in MasterComponent.doInit (or the
setter).
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)