commit | f067704e90608479a91a9462a1723d50f3847072 | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Mon Feb 24 13:31:36 2025 +0100 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Mon Feb 24 13:34:01 2025 +0100 |
tree | 28f350e892d28642a0c7cc2701996ef362597ed7 | |
parent | b6b67cb42ce11c6d9e1b1e7d27c67fde8fbdfac9 [diff] |
Adapt SharedRefDbExceptionHook to changed ExceptionHook API which was changed in Iebfc5301a2ad1b610fc73bd9e3e3a2f974c6fe72 to allow multiple traceIDs for a request. Change-Id: Id19c62b2814b95954129ba46a2da7608bbfc7f96
Global ref-database interface for use with Gerrit Code Review.
Enables the de-coupling between Gerrit, its libModules and the different implementations of a globally shared ref-database.
The design for a global ref-db interface can be found as part of the multi-site design documentation, where it first originated and was approved by the community.
In order to consume this library, some Guice bindings need to be registered appropriately. More information in the relevant documentation.
Global ref-database expose metrics to measure the global ref-database operation latency. List of the available metrics can be found here.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk.
Create a symbolic link of the repository source to the Gerrit source tree /plugins/global-refdb directory.
Example:
git clone https://gerrit.googlesource.com/gerrit git clone https://gerrit.googlesource.com/modules/global-refdb cd gerrit/plugins ln -s ../../global-refdb .
From the Gerrit source tree issue the command bazelisk build plugins/global-refdb
Example:
bazelisk build plugins/global-refdb
The libModule jar file is created under bazel-bin/plugins/global-refdb/global-refdb.jar
To execute the tests run bazelisk test plugins/global-refdb/...
from the Gerrit source tree.
Example:
bazelisk test plugins/global-refdb/...
Add global-refdb
in the CUSTOM_PLUGINS
section of the tools/bzl/plugins.bzl
.
Example:
CUSTOM_PLUGINS = [ "global-refdb", ]
Run tools/eclipse/project.py
for generating or updating the Eclipse project.