|author||Sven Selberg <email@example.com>||Fri Nov 17 14:24:21 2017 +0100|
|committer||Sven Selberg <firstname.lastname@example.org>||Tue Feb 06 12:29:07 2018 +0100|
Do not block Gerrit's event bus when queue is full If rabbitmq goes down and the plugin cannot send messages for a long enough time, the queue will eventually fill up. queue.put() will block and wait for the publisher to start consuming from the queue and block the event bus in Gerrit until queue is non-full. Producer: * If queue is full throw away incoming events instead of blocking. Consumer: * Wait for event to be available. * If event is available: take event and wait for an open connection. * If publish event fails and queue is full: throw away event. Change-Id: Idbe6a344fbaa8ae8715a5ddac7a1b1e89204f436
This is Gerrit plugin.
This can publish gerrit events to message queue provided by RabbitMQ. Published events are the same as Gerrit stream evnets.
This plugin works on Gerrit 2.8 - 2.13.
[amqp] uri = amqp://localhost [exchange] name = exchange-for-gerrit-queue [message] routingKey = com.foobar.www.gerrit [gerrit] name = foobar-gerrit hostname = www.foobar.com
masteris permanently latest but would not be updated by author anymore.
The Apache Software License, Version 2.0
Copyright (c) 2013 rinrinne a.k.a. rin_ne