ERROR com.google.gerrit.server.events.StreamEventsApiListener : Failed to dispatch event

22 views
Skip to first unread message

Opportunity alie

unread,
Dec 19, 2025, 4:02:41 AM (2 days ago) Dec 19
to Repo and Gerrit Discussion
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.

Luca Milanesio

unread,
Dec 19, 2025, 9:11:02 AM (2 days ago) Dec 19
to Repo and Gerrit Discussion, Luca Milanesio

On 19 Dec 2025, at 09:02, Opportunity alie <houji...@gmail.com> wrote:

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
.....

There could have been some errors preventing the change from being stored on the repo.
Can you share the error_log?

Luca.

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.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/86a885e9-0864-410a-8661-45fe040f839dn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages