commit | e4e0b1618cf7875bc2a2fc758f2c12a19502c1c6 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Jan 27 23:38:58 2022 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Fri Jan 28 00:09:11 2022 +0000 |
tree | 0e6a4b7fb61168c7165570331ad313c681fdd860 | |
parent | ea9e54c48b1c80f5ebec16c13f576657f6d65c19 [diff] |
Fix the topic events replay Kafka REST-API The topic replay functionality was not tested properly and resulted in the unnoticed breakage of the events replay with the Confluent's REST-Proxy. Fix tests and the Kafka REST-API client implementation of the events replay. Bug: Issue 15630 Change-Id: I57639a044e0512e30eb52b5a488622bf1c1a3075
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.
linux
java-1.8
Bazel
Kafka 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://gerrit.googlesource.com/gerrit git clone https://gerrit.googlesource.com/plugins/events-kafka gerrit/plugins/events-kafka cd gerrit rm plugins/external_plugin_deps.bzl ln -s ./events-kafka/external_plugin_deps.bzl plugins/.
To build the events-kafka plugins, issue the command from the Gerrit source path:
bazel build plugins/events-kafka
The output is created in
bazel-genfiles/plugins/events-kafka/events-kafka.jar
Assuming a running Kafka broker on the same Gerrit host, add the following settings to gerrit.config:
[plugin "events-kafka"] bootstrapServers = localhost:9092