allthingssecurity commented on PR #30311: URL: https://github.com/apache/camel/pull/30311#issuecomment-6973700703
Pushed 62ca90e631d5: - start time: `doStart` records it, and after a failed lookup the polls ask for `created > "<minute of the start in the user's zone>"` and keep the issues whose `getCreationDate()` is after the start. Once one is found it becomes the latest issue and the polls go on as before. The polls no longer retry the lookup, which took the issue created meanwhile as the latest one. The class Javadoc and the description mention the clock skew between the local clock and Jira's. - time zone: read before the lookup, and all of `doStart` now runs before `super.doStart()` starts the polls, so a poll can no longer see a null zone. - test: `NewIssuesConsumerCreatedSinceStartTest` (Mockito, user in UTC+14) checks that an issue created after the start and before Jira answers again is routed, an older one from the same minute is not, and the JQL uses the start minute in the user's zone. Against the previous commit it gets no issue. camel-jira unit tests: 65 run, 0 failures. _Claude Code on behalf of allthingssecurity_ -- 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]
