commit | 5bd270fafe971e1b532538e27bc494f03645b3ef | [log] [tgz] |
---|---|---|
author | Saša Živkov <sasa.zivkov@sap.com> | Thu Aug 01 04:26:01 2019 +0200 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Aug 01 02:26:01 2019 +0000 |
tree | 18953a371f63211e66a4d4fcfed17477d47fea23 | |
parent | 9a5cc0ff9c7dd7cc9c6f13e5cd5b944a8aeaed6a [diff] |
Update git submodules * Update plugins/replication from branch 'stable-2.16' to ee867cafde59ff6e02c2a1cef07a5fb82423e9ac - Remove the NewProjectCreatedListener implementation Initial version of this plugin implemented the NewProjectCreatedListener in order to create missing repositories in the replication targets. This was the only way how replication plugin created missing repositories. Since I4e587cdfca09445c9b1c528b2f1edae0944aec68, if during the replication of a ref it is found that the repository missing on the remote site it will be automatically created. This means, that since that change there are two ways a repository is created on the remote site: 1: from the NewProjectCreatedListener.onNewProjectCreated 2: during ref replication when the repository is missing There are two major differences in how cases 1 and 2 are invoked. In the case 1 the remote repository creation is performed from the calling thread, which means from the Gerrit core thread which invokes NewProjectCreatedListener(s). In the case 2, the creation of the remote repository is done from the replication queue thread which was processing the ref replication. Note that replication tasks are created with an additional child injector [1] which provides additional bindings available for injection into the classes implementing the replication and repository creation. These binding are, however, not available when the repository creation is processed from the Gerrit core thread invoking NewProjectCreatedListener(s). Removing the NewProjectCreatedListener implementation removes this asymmetry and makes sure that all replication relevant steps, including repository creation, are processed from replication queue threads. [1] https://gerrit.googlesource.com/plugins/replication/+/871da5aa023bdfd03a3b943f7f6b82c7e0f16341/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java#189 Change-Id: I32e7aa632ffe0e94eb525f7f2c007fbb88569004 (cherry picked from commit c16fe9c5a6da6c23dbf45a533f788dcc527e209c)
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 7 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]
To run a Ubuntu 15.04 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.