Hi,all:
gerrit 3.12.3 active/active setup,ZooKeeper is built using a cluster.I configured it like this.
[ref-database "zookeeper"]
connectString = 192.168.2.101:2181;192.168.2.102:2181;192.168.2.103:2181;
Local Git Bash push,git push origin HEAD:refs/for/master, the error log:
[ReceiveCommits-1[receive-commits]-for-SSH git-receive-pack /code/test (admin)] ERROR com.google.gerrit.server.events.StreamEventsApiListener : Failed to dispatch event [CONTEXT PLUGIN="gerrit" RECEIVE_ID="code/test-1766133196669-07d664bf" TRACE_ID="1766133196668-07d664bf" project="code/test" request="GIT_RECEIVE" ]
com.google.gerrit.exceptions.StorageException: com.google.gerrit.server.project.NoSuchChangeException: 21
......
Caused by: com.google.gerrit.server.project.NoSuchChangeException: 21
.....
the backup http_log:
"POST /gerrit/plugins/high-availability/index/change/code%2Ftest~21 HTTP/1.1" 204
"POST /gerrit/plugins/high-availability/event/ref-updated HTTP/1.1" 204 - 2
"POST /gerrit/plugins/high-availability/event/ref-updated HTTP/1.1" 204 - 2
missing "POST /gerrit/plugins/high-availability/event/patchset-created HTTP/1.1" 204
All newly built,
[ref-database "zookeeper"]
connectString =
192.168.2.101:2181 Everything is working normally, and the online environment is currently running according to the previous configuration. How can we revert to the previous setup?
I tried the following solutions:
stop gerrit,ref-database Configured as a single
Clear cache,clear zookeeper version-2 ,Reinit
reindex projects changes
None of them can solve it.