Gerrit trigger not working

Issue

Triggers defined with Gerrit Trigger plugin are not working.

The Gerrit incoming events queue contains 1008 items! Something might be stuck, or your system can't process the commands fast enough. Try to increase the number of receiving worker threads. Current thread-pool size: 6
The Gerrit incoming events queue contains 6389 items! Something might be stuck, or your system can't process the commands fast enough. Try to increase the number of receiving worker threads. Current thead-pool size: 10

Environment

Resolution

The recommended fix is to upgrade Gerrit Trigger plugin to at least version 2.30.1.
A downgrade to version 2.28.0 will also fix this issue.

The issue is reported for both 2.29.0 and 2.30.0 versions of Gerrit Trigger plugin. The error happens when disabled jobs are configured with dynamic trigger at Jenkins start time.

Explanation

The executors are waiting for the project to be ready, i.e. the dynamic trigger to be loaded. However, the GerritTriggerTimerTask does a couple of checks (including job.isBuildable()) before updateTriggerConfigURL.
This means the latch introduced in pull request #350 is never released and the executors are blocked forever.

References

JENKINS-56528
JENKINS-59215

Have more questions?

0 Comments

Please sign in to leave a comment.