commit | f74ee383ddae211ff4ad5358df666634c03685f3 | [log] [tgz] |
---|---|---|
author | Gal Paikin <paiking@google.com> | Mon Mar 22 16:00:25 2021 +0100 |
committer | Gal Paikin <paiking@google.com> | Tue Mar 23 14:55:52 2021 +0100 |
tree | b95995def02fcbf0f175df6222ef1013dc29e85e | |
parent | 9d506693a3974ac1b8982a0c5f2df42b7ec0ebdb [diff] |
Persist group cache by uuid We split the groups by uuid cache into two caches: 1. "groups_byuuid" stays the same. Caches by uuid without reading the SHA-1 of the ref from NoteDb. 2. "groups_byuuid_persisted" is the persistent variant of the above cache. This is used in the loader of "groups_byuuid" and it has the SHA-1 of the ref in the key. The new setup eases cold start times. The split is useful to allow accessing groups without loading the SHA-1 for each lookup. As a follow-up, we can also implement another method that gets multiple groups at the same time. This will be more efficient given that we will only need to access NoteDb once instead of once per group. This will be needed when getting the subgroups. While at it, we needed to add a new method that loads a group (to load it for a specific revision) so we also add a few @Nullable for other methods (since the sha-1 can be null). Change-Id: Ia52b3a3edcae0589c785e9d093776ec26dc324ca
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.