commit | dcf7a0e3dbce00fbc829be8a7192cce2673105b0 | [log] [tgz] |
---|---|---|
author | Marcin Czech <maczech@gmail.com> | Thu Mar 11 16:46:23 2021 +0100 |
committer | Luca Milanesio <luca@milanesio.org> | Tue Mar 23 12:29:10 2021 +0000 |
tree | 1943fab8a8521af2a097a65fa2811a468a8bafc5 | |
parent | c93c05562b80483c97d0750da8d10cfa0fe53da7 [diff] |
Rollback ref update when global-refdb update failure Reference update contains two updates: local repository update and global-refdb. Failure of the global-refdb update cause split brain because local repository is ahead of the global-refdb. To mitigate the problem, rollback local repository update when global-refdb update fails. Also for split brain always rollback the ref-update and return LOCK_FAILURE regardless of the enforcement policy. Bug: Issue 14028 Change-Id: Ia7cc54a5b32fa2997cfb4673cb768fe43107b02a
Global ref-database interface for use with Gerrit Code Review.
Enables the de-coupling between Gerrit, its libModules and the different implementations of a globally shared ref-database.
The design for a global ref-db interface can be found as part of the multi-site design documentation, where it first originated and was approved by the community.
In order to consume this library, some Guice bindings need to be registered appropriately. More information in the relevant documentation.