-
Bug
-
Resolution: Fixed
-
Critical
The Draft Published event is marked with the RepositoryModifiedEvent interface therefore Gerrit Trigger will attempt to wait for a replication event from Gerrit.
It will never come so the job will eventually timeout.
The Change Merged event is NOT marked with the RepositoryModifiedEvent interface therefore Gerrit Trigger will not attempt to wait for a replication event from Gerrit while it should.
[JENKINS-25047] Draft Published and ChangeMerged events not handled correctly when using replication to slaves
Description |
Original:
The Draft Published event is marked with the RepositoryModifiedEvent interface therefore Gerrit Trigger will attempt to wait for a replication event from Gerrit. It will never come so the job will eventually timeout. |
New:
The Draft Published event is marked with the RepositoryModifiedEvent interface therefore Gerrit Trigger will attempt to wait for a replication event from Gerrit. It will never come so the job will eventually timeout. The Change Merged event is NOT marked with the RepositoryModifiedEvent interface therefore Gerrit Trigger will not attempt to wait for a replication event from Gerrit while it should. |
Summary | Original: Draft Published event not handled correctly when using replication to slaves | New: Draft Published and ChangeMerged events not handled correctly when using replication to slaves |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 158947 ] | New: JNJira + In-Review [ 195940 ] |
Code changed in jenkins
User: escoheb
Path:
pom.xml
src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/replication/ReplicationQueueTaskDispatcher.java
src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/gerritnotifier/ParameterExpanderTest.java
src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/mock/Setup.java
src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/replication/ReplicationQueueTaskDispatcherTest.java
http://jenkins-ci.org/commit/gerrit-trigger-plugin/8c7d0e84d5dc4bf6433cff85b9c61f4373e56366
Log:
Fix DraftPublished and ChangeMerged -> Replication
The Draft Published event is now handled correctly by ensuring that
Gerrit Trigger does not wait for a replicaton event from the slave.
The Change Merged event is now handled correctly by ensuring that we
wait for the replication event for the included patchset on the slave.
These use cases were covered:
since there already other changes merged after the patchset was created.
[FIXED JENKINS-25047]