avano commented on code in PR #19577:
URL: https://github.com/apache/camel/pull/19577#discussion_r2432892481
##########
components/camel-jira/src/main/java/org/apache/camel/component/jira/consumer/AbstractJiraConsumer.java:
##########
@@ -49,7 +49,7 @@ public abstract class AbstractJiraConsumer extends
ScheduledBatchPollingConsumer
protected AbstractJiraConsumer(JiraEndpoint endpoint, Processor processor)
{
super(endpoint, processor);
this.endpoint = endpoint;
- setDelay(endpoint.getDelay());
+ this.endpoint.setDelay(endpoint.getDelay());
Review Comment:
this was not working as it sets the delay into an `ScheduledPollConsumer`
instance and later
[here](https://github.com/apache/camel/blob/main/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraEndpoint.java#L221)
the `configureConsumer` method from
[ScheduledPollEndpoint](https://github.com/apache/camel/blob/main/core/camel-support/src/main/java/org/apache/camel/support/ScheduledPollEndpoint.java#L180)
does not compare to the value from `ScheduledPollConsumer`, but from
`ScheduledPollEndpoint`
@davsclaus if that's the correct fix, I can create a JIRA for that so that
it's tracked (it's a separate commit that can be easily backported)
--
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]