Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20053

camel-jira: watchUpdates consumer does not see issues created after route startup

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      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

      Attachments

        Activity

          People

            jamesnetherton James Netherton
            jamesnetherton James Netherton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: