commit | 9f8ca36cfa9813fd252998f7679b94991d504231 | [log] [tgz] |
---|---|---|
author | Sven Selberg <svense@axis.com> | Fri Nov 17 14:24:21 2017 +0100 |
committer | Sven Selberg <svense@axis.com> | Tue Feb 06 12:29:07 2018 +0100 |
tree | 58c925be59e3eb6ef6db4efb88c8f0c6eff3a319 | |
parent | 26fdd0e21ff1adb21e08dc09c60fc520720cf596 [diff] |
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.
linux
java-1.8
Bazel
[amqp] uri = amqp://localhost [exchange] name = exchange-for-gerrit-queue [message] routingKey = com.foobar.www.gerrit [gerrit] name = foobar-gerrit hostname = www.foobar.com
3.14 (Freezed)
stable-2.10
master
is permanently latest but would not be updated by author anymore.3.1
3.0
2.0
1.4
1.3
1.2
1.1
monitor.failureCount
1.0
The Apache Software License, Version 2.0
Copyright (c) 2013 rinrinne a.k.a. rin_ne