Introduce projectVersion cache

Introduces a caching mechanism to reduce the number of requests to
DynamoDB by storing the current life version of a project.

Cherry-picked from bae28b0cca4900dacbedce70c745df8834633222.
Adapted DynamoDBRefDatabaseIT test to avoid compilation error:

cannot infer type arguments for TypeLiteral<T>
'<>' with anonymous inner classes is not supported in -source 8

Change-Id: Ia260b0c7a684b3314bd32562eb0602fd4d54a20e
4 files changed
tree: 06c9e175c1dc524798dc01181c818f96a2dbc3ec
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. Jenkinsfile
  5. LICENSE
  6. README.md
README.md

Gerrit DynamoDB ref-db

This plugin provides an implementation of the Gerrit global ref-db backed by AWS DynamoDB.

Requirements for using this plugin are:

  • Gerrit v3.3 or later
  • DynamoDB provisioned in AWS

Typical use-case

The global ref-db is a typical use-case of a Gerrit multi-master scenario in a multi-site setup. Refer to the Gerrit multi-site plugin for more details on the high level architecture.