jenkinsci / jenkinsci/gerrit-trigger-plugin
[JENKINS-68308] The gerrit event log plugin is triggering the events which are already triggered when Missed Events Playback Feature is enabled
- Dominant language
- Java
- Stars
- 226
- Forks
- 289
- PR merge metrics
- No merged PRs in 30d
Description
Recently, we have enabled Missed Events Playback Feature for the Jenkins Gerrit Plugin (https://plugins.jenkins.io/gerrit-trigger/#plugin-content-missed-events-playback-feature-available-from-v-2140)
The Missed Events Playback Feature ensures that any missed events are re-played and builds are triggered when Jenkins instance has been down for a period of time (upgrade or maintenance).
Here, we are facing an issue where the gerrit event-log plugin is triggering the events twice after 90 minutes or so, for the event which are already triggered . We are seeing this issue with and without restart of Jenkins instance.
We can reproduce the same issue with different version of event-log plugin as well, that is with API Version 3.2.3 and API Version 2.16.21.
Please look into this bug and let us know the possible solution.
Thanks.
---
Originally reported by gopi_22100, imported from: The gerrit event log plugin is triggering the events which are already triggered when Missed Events Playback Feature is enabled
rsandell
Raw content of original issue
Recently, we have enabled Missed Events Playback Feature for the Jenkins Gerrit Plugin (https://plugins.jenkins.io/gerrit-trigger/#plugin-content-missed-events-playback-feature-available-from-v-2140)
The Missed Events Playback Feature ensures that any missed events are re-played and builds are triggered when Jenkins instance has been down for a period of time (upgrade or maintenance).
Here, we are facing an issue where the gerrit event-log plugin is triggering the events twice after 90 minutes or so, for the event which are already triggered . We are seeing this issue with and without restart of Jenkins instance.
We can reproduce the same issue with different version of event-log plugin as well, that is with API Version 3.2.3 and API Version 2.16.21.
Please look into this bug and let us know the possible solution.
Thanks.
Contributor guide
Research direction
Start by reproducing the duplicate triggers with Missed Events Playback enabled, both with and without a Jenkins restart, using the referenced Gerrit event-log API versions 3.2.3 and 2.16.21. Trace how playback and the Gerrit event-log plugin handle the same event; done means an already-triggered event results in only one build trigger.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100