commit | 56337b97f2e596a6da31ce9216b7b52d05b0d94e | [log] [tgz] |
---|---|---|
author | Marcin Czech <maczech@gmail.com> | Tue Oct 17 14:34:42 2023 +0200 |
committer | Marcin Czech <maczech@gmail.com> | Wed Oct 18 15:48:23 2023 +0200 |
tree | c9aa8b7736b82d053f286436581c0ecd898a3440 | |
parent | cf8938bc4dab321dc554e837b8343d43be6494a7 [diff] | |
parent | f0222f020528cf36e0ddd081710527af6ad9ddd5 [diff] |
Merge branch 'stable-3.6' into stable-3.7 * stable-3.6: Remove redundant format calls in log calls Add put method to create/update global-refdb entry Add happy path test for BatchRefUpdateValidator Remove Maven legacy pom.xml Return immediately if local ref update fails Remove references to Zookeeper in logs Squash filter/findFirst/isPresent into anyMatch Fix typo in private method Bump Gerrit and module to v3.6.6 Bump Gerrit and module to v3.5.6 Change-Id: Ibcc361909822c956b74721fdd8eee03649f1d8c5
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 bazelsk build plugins/global-refdb
Example:
bazelisk build plugins/global-refdb
The libModule jar file is created under basel-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.