[
https://issues.apache.org/jira/browse/CAMEL-27848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27848:
--------------------------------
Description:
Found while improving the option descriptions of camel-master for CAMEL-23832
(commit
https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
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_
was:
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_
> 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
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-master for CAMEL-23832
> (commit
> https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
> 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)