commit | 7047e985fafcaaa7716d33e10c97c69134657f37 | [log] [tgz] |
---|---|---|
author | Sven Selberg <svense@axis.com> | Thu Dec 27 18:10:03 2018 +0100 |
committer | Sven Selberg <svense@axis.com> | Tue Jan 08 09:36:35 2019 +0100 |
tree | b4996442389fb3852f216a1b6ff16627ed9b5412 | |
parent | 6fba355ec5e76d8a3dc4baf17a184b001893fbe6 [diff] |
MessagePublisher: Threads cannot be restarted If publisherThread is not alive when a new event arrives we currently try to restart the dead Thread which results in a IllegalThreadStateException. If publisherThread has died, create a new Thread and start it. Synchronize the start-new-thread logic to avoid race conditions that potentially could start new threads unnecessarily and leave existing, live, threads orphaned. Change-Id: I772a3275b16be7f2fb31c141ad9a71f162d53ce1
Publish gerrit stream events to a RabbitMQ queue. This plugin works with any version of Gerrit starting from v2.8.
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