From 982763cc1eb2c4942ac04b83496db22f6d54454f Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 17 Feb 2023 15:04:15 -0800 Subject: [PATCH] Enable Gerrit replication autoreload Enable Gerrit replication autoreload to simplify the process of adding new Gitea backend servers and removing old ones. Without this we would need to enable remote Gerrit plugin administration (which is global for all plugins including plugin installations) or restart Gerrit everytime we want ot change the repliction config file. Note we did have this setting set at one time and it was removed in e7c6b7602609d14bc49eaca958bcdef788e861cf. This was due to replication events being dropped and gitea's not being kept in sync when the plugin updated its config. I think we can toggle this setting to true while we add do gitea server work and plan for the occasional manual full sync to ensure nothing gets missed. Then go back to having this set to false long term when we are done. Change-Id: I8cf37f6b84516e36deb143a36697874c640c0635 --- playbooks/roles/gerrit/templates/replication.config.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/gerrit/templates/replication.config.j2 b/playbooks/roles/gerrit/templates/replication.config.j2 index e553c292bc..ef75c80ff7 100644 --- a/playbooks/roles/gerrit/templates/replication.config.j2 +++ b/playbooks/roles/gerrit/templates/replication.config.j2 @@ -3,7 +3,7 @@ [gerrit] defaultForceUpdate = true -autoReload = false +autoReload = true replicateOnStartup = false {% for replication in gerrit_replication %}