commit | 16249c2434094847c3c2b14321dda3224fea8b28 | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Tue May 14 17:32:30 2024 +0200 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Wed May 15 02:10:40 2024 +0200 |
tree | 1424a288e3328fe72bd11478e9e66f84f6a13f5e | |
parent | fd7dc049dd0c62286512f18c2edab185f121cbf6 [diff] |
Rename RefPair to RefUpdateSnapshot and clean it up - the old name RefPair was a misnomer, it's not a pair of refs - the new name RefUpdateSnapshot better describes the purpose of this class: it's an immutable snapshot of a JGit RefUpdate as the class javadoc already explained - reduce visibility of this class to package-visibility since it's only used within its enclosing package - add getters for all properties the callers need from a RefUpdateSnapshot Change-Id: I78c9d35c685beffbd3bc3d4ab18bd006d98382a6
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.