Make the local test environment more realistic The local test environment should reflect as much as possible a real production issue, including: - listen on the gerrit_stream topic for catching up - have multiple concurrent replication threads Also use a specific groupId for consuming messages so that the plugin can have the assurance of getting its specific backlog of messages regardless of the stream events consumption made by Gerrit. Change-Id: I4e7fc273262fea3f0018d05e6728bc61f063db95
diff --git a/setup_local_env/configs/replication.config b/setup_local_env/configs/replication.config index 1c2aac4..ff0c248 100644 --- a/setup_local_env/configs/replication.config +++ b/setup_local_env/configs/replication.config
@@ -9,6 +9,7 @@ createMissingRepositories = true replicateProjectDeletions = true replicateHiddenProjects = true + threads = 5 [gerrit] autoReload = true replicateOnStartup = false @@ -17,5 +18,7 @@ maxRetries = 5 useCGitClient = false consumeStreamEvents = false + eventBrokerTopic = gerrit_stream + eventBrokerGroupId = pullreplication_$INSTANCE_ID syncRefs="ALL REFS ASYNC" maxApiPayloadSize=40000