Release notes for Gerrit 2.13.8 Change-Id: I772d3e9938c2083ce7f1a583fea42fedf29f8f6b
diff --git a/releases/2.13.md b/releases/2.13.md index ef65e43..f408e09 100644 --- a/releases/2.13.md +++ b/releases/2.13.md
@@ -1,6 +1,7 @@ # Gerrit 2.13 -Download: **[2.13.7](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.7.war)** +Download: **[2.13.8](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.8.war)** +| [2.13.7](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.7.war) | [2.13.6](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.6.war) | [2.13.5](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.5.war) | [2.13.4](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.4.war) @@ -9,7 +10,8 @@ | [2.13.1](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.1.war) | [2.13](https://gerrit-releases.storage.googleapis.com/gerrit-2.13.war) -Documentation: **[2.13.7](https://gerrit-documentation.storage.googleapis.com/Documentation/2.13.7/index.html)** +Documentation: **[2.13.8](https://gerrit-documentation.storage.googleapis.com/Documentation/2.13.8/index.html)** +| [2.13.7](https://gerrit-documentation.storage.googleapis.com/Documentation/2.13.7/index.html) | [2.13.6](https://gerrit-documentation.storage.googleapis.com/Documentation/2.13.6/index.html) | [2.13.5](https://gerrit-documentation.storage.googleapis.com/Documentation/2.13.5/index.html) | [2.13.4](https://gerrit-documentation.storage.googleapis.com/Documentation/2.13.4/index.html) @@ -22,6 +24,7 @@ ## Release Highlights +* Suport for multiple database backends for "reviewed" flags (from 2.13.8) * Support for Large File Storage (LFS) * Metrics interface * Hooks plugin @@ -38,6 +41,31 @@ java -jar gerrit.war init -d site_path ``` +### Manual Schema Update for Reviewed Flags + +Sites that have already upgraded to version 2.13 may want to migrate from the +default H2 database to MySQL or PostgreSQL. This can be done using the +[MigrateAccountPatchReviewDb](http://gerrit-documentation.storage.googleapis.com/Documentation/2.13.8/pgm-MigrateAccountPatchReviewDb.html) +program. + +Sites that have already upgrade to version 2.13 before 2.13.8 need to manually +migrate the reviewed flags database to change the `file_name` column length. + +After stopping Gerrit, enter the H2 console: + +``` sh +java -jar /path/to/h2.jar -url jdbc:h2:path/to/review_site/db/account_patch_reviews +``` + +and then execute the following statement: + +``` +ALTER TABLE account_patch_reviews ALTER COLUMN file_name VARCHAR(4096) DEFAULT '' NOT NULL +``` + +Depending on the number of rows, this operation may take some time. For +example, one million rows may take up to 1 minute. + ### Online Reindexing To use online reindexing for the `changes` secondary index when upgrading @@ -464,6 +492,49 @@ ## Bugfix Releases +### 2.13.8 {#2.13.8} + +* Improvements in "reviewed" flags cache + + * [Issue 5906](https://bugs.chromium.org/p/gerrit/issues/detail?id=5906): + Fix performance regression. + + * Fix SQL statements used to clear "reviewed" flags. + + The SQL statements were using `+` rather than `=` which resulted in + more entries than expected being deleted. + + * Fix `file_name` column length. + +* Upgrade JGit to 4.5.2.201704071617-r. + + This includes more fixes for handling of invalid packfiles. See + [JGit bug 514170](https://bugs.eclipse.org/bugs/show_bug.cgi?id=514170) + for details. + +* [Issue 5817](https://bugs.chromium.org/p/gerrit/issues/detail?id=5817): +Be more consistent about object ids used in ref operation validation. + + The `ReceiveCommand` passed to `RefOperationValidationListener` did not + always have the old and new objectd Ids set, which could result in crashes + when dereferenced by plugins. + +* Fix potential server error when extracting footer lines from commits. + +* Fix merging a merge commit that refers to commits not submitted as changes. + +* Fix redundant notifications on change screen. + +* Allow project owner to use set-project ssh command. + + REST API and UI allow project owner to change the project settings so + inconsistency is fixed by allowing the same in the ssh command. + +* Add an `account indexed` extension point. + + Similar to the existing `change indexed` extension point, this allows plugins + to be notified when an account has been indexed. + ### 2.13.7 {#2.13.7} * Prevent circular module dependency when running in external container.