commit | a984df68d06722c2272547c993fbed5d36e1ee0b | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Tue Jan 10 09:57:18 2023 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Tue Jan 10 10:07:42 2023 +0100 |
tree | ecb5b2f354634c6249e90b0fc97326810da31be4 | |
parent | 3d7e7320a64d4d04b68fc734802b18c6bc50e7f8 [diff] |
GitFileDiffCacheImp: Improve logging for MissingObjectExceptions We recently saw MissingObjectExceptions when trying to get the file header for a diff entry, but we were not able to tell from the stacktrace for which path the object was missing and whether it was the old or the new path. Example stacktrace: ... Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing blob 3c89d305edb38258665b9ffca5ca08d79d3953a8 at org.eclipse.jgit.internal.storage.dfs.DfsReader.open(DfsReader.java:225) at com.google.devtools.gerritcodereview.git.storage.GoogleObjectReader.open(GoogleObjectReader.java:248) at org.eclipse.jgit.diff.ContentSource$ObjectReaderSource.open(ContentSource.java:135) at org.eclipse.jgit.diff.ContentSource$Pair.open(ContentSource.java:300) at org.eclipse.jgit.diff.DiffFormatter.open(DiffFormatter.java:1075) at org.eclipse.jgit.diff.DiffFormatter.createFormatResult(DiffFormatter.java:1002) at org.eclipse.jgit.diff.DiffFormatter.toFileHeader(DiffFormatter.java:965) at com.google.gerrit.server.patch.gitfilediff.GitFileDiffCacheImpl$Loader.lambda$createGitFileDiff$2(GitFileDiffCacheImpl.java:356) ... Bug: Google b/263077919 Signed-off-by: Edwin Kempin <ekempin@google.com> Release-Notes: skip Change-Id: Ia810b47264b6a3efb9e3bd46c7e57f76165b4590
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.