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

[jira] [Assigned] (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:all-tabpanel ]

James Netherton reassigned CAMEL-20053:
---------------------------------------

    Assignee: James Netherton

> 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
>            Assignee: James Netherton
>            Priority: Minor
>             Fix For: 3.20.9, 3.21.3, 3.22.0, 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)