Project

General

Profile

Actions

Task #3069

closed

Migrate Gerrit backend to NoteDb and upgrade to version 3.x

Added by David Ostrovsky almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Gerrit
Target version:
Team - Q1/2020
Start date:
Due date:
2020-02-08
% Done:

0%

Tags:

Description

There are many advantages to upgrade to the recent Gerrit version:

  • GWT UI is gone
  • ReviewDb is gone and backend migration to NoteDb eliminates dependency on relational database
  • PolyGerrit UI is more mature in Gerrit 3.x
  • Many new core plugins were added in Gerrit 3.x: delete-project, gitiles, plugin-manager, and webhooks
  • Gerrit 3.1 supports Git wire protocol v2 out of the box, that substantially accelerates fetch operations

To enable Git wire protocol v2, these lines should be added to the jgit configuration file in gerrit site:

etc/jgit.config

[...]
[protocol]
version = 2
[...]

Moreover, the Git wire protocol v2 should be enabled on the client side as well. In my case, it is:

$ grep -1 protocol ~/.gitconfig

[protocol]
version = 2

And last but not least, the minimum required git-core version that supports wire protocol v2 is 2.18.0.

To test, that the git wire protocol communication takes place, one can do:

$ davido@wizball:~/projects/reviewers (master %>)$ GIT_TRACE_PACKET=1 git -c protocol.version=2 ls-remote
22:36:14.539446 pkt-line.c:80 packet: git< version 2

Files

broken-changes.txt (10.5 KB) broken-changes.txt Broken change IDs Guilhem Moulin, 2020-01-10 04:04
broken-revisions.txt (3.45 KB) broken-revisions.txt Missing revisions Guilhem Moulin, 2020-01-10 04:19
Actions

Also available in: Atom PDF