commit | c61b0fec96ce3562eb3e2002399412f42916abcc | [log] [tgz] |
---|---|---|
author | Wendy <wendy.wang10@sap.com> | Fri Jul 18 11:13:42 2025 +0200 |
committer | Wendy <wendy.wang10@sap.com> | Fri Jul 25 14:00:05 2025 +0200 |
tree | 798a89fd3ebeac6623181691b9ff5f4506478ce3 | |
parent | b912fa8f525423b0c9fcfc12580c4a11064fa14b [diff] |
Projects cannot be in multiple ref storage configurations Prevent projects from being assigned to multiple storage config categories (storeAllRefs, storeMutableRefs, storeNoRefs). Avoids ambiguity in policy enforcement by validating that each project appears in at most one configuration. Exception thrown at startup if overlap detected. Change-Id: I3a726ea985c47dc6fd48369aa4f174a9cdd04ee9
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.