You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/10/27 09:00:00 UTC

[jira] [Commented] (CAMEL-20053) camel-jira: watchUpdates consumer does not see issues created after route startup

    [ https://issues.apache.org/jira/browse/CAMEL-20053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17780262#comment-17780262 ] 

Claus Ibsen commented on CAMEL-20053:
-------------------------------------

Yes that seems correct, are you fixing this ?

> camel-jira: watchUpdates consumer does not see issues created after route startup
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-20053
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20053
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jira
>            Reporter: James Netherton
>            Priority: Minor
>             Fix For: 4.0.3, 4.2.0
>
>
> Originally reported for Camel Quarkus here:
> https://github.com/apache/camel-quarkus/issues/5427
> I think the implementation of poll() in the Jira WatchUpdatesConsumer is not correct.
> If the number of issues found during the poll has changed compared to previous, then for some reason it invokes init(). It should probably be invoking initIssues to refresh the map of watched issues. Otherwise the consumer is only able to watch for updates on issues that were created before the route was started.
> https://github.com/apache/camel/blob/main/components/camel-jira/src/main/java/org/apache/camel/component/jira/consumer/WatchUpdatesConsumer.java#L70



--
This message was sent by Atlassian Jira
(v8.20.10#820010)