Configure the set of refs prefixes to be ignored by the global-refdb

Introduce the ref-database.ignoredRefsPrefixes to disable the
global-refdb tracking and validation of a set of refs.

Example of configuration for ignoring the user's sandbox branches
and the refs created by the ref-protection plugin:

[global-refdb]
   ignoreRefsPrefixes = refs/sandbox
   ignoreRefsPrefixes = refs/backups

Change-Id: I0de509851359b712bae7cc197fca2e05f7554822
2 files changed
tree: ed62c279b5413350916d9b9e540757ebced2f0ad
  1. src/
  2. .gitignore
  3. bindings.md
  4. BUILD
  5. config.md
  6. Jenkinsfile
  7. LICENSE
  8. metrics.md
  9. pom.xml
  10. README.md
README.md

Gerrit interface to a global-refdb

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.

Design

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.

Bindings

In order to consume this library, some Guice bindings need to be registered appropriately. More information in the relevant documentation.

Metrics

Global ref-database expose metrics to measure the global ref-database operation latency. List of the available metrics can be found here.