quota plugin can not startup and the gerrit server is no response

28 views
Skip to first unread message

Yingchun Li

unread,
Dec 23, 2025, 4:40:33 AM (yesterday) Dec 23
to Repo and Gerrit Discussion
Hi,
    After building and installing the quota plugin, there is error in error_log:

[2025-12-23T17:01:17.911+08:00] [SSH-Interactive-Worker-25] ERROR com.google.gerrit.server.git.WorkQueue : WorkQueue thread SSH-Interactive-Worker-25 threw exception
java.lang.IncompatibleClassChangeError: Method 'com.google.gerrit.entities.Project$NameKey com.google.gerrit.entities.Project$NameKey.parse(java.lang.String)' must be Methodref constant
at com.googlesource.gerrit.plugins.quota.TaskQuotas.estimateProject(TaskQuotas.java:148)
at com.googlesource.gerrit.plugins.quota.TaskQuotas.isReadyToStart(TaskQuotas.java:92)
at com.google.gerrit.server.git.WorkQueue$Executor.lambda$isReadyToStart$7(WorkQueue.java:668)
at com.google.gerrit.server.plugincontext.PluginContext.runLogExceptions(PluginContext.java:245)
at com.google.gerrit.server.plugincontext.PluginMapContext.lambda$runEach$1(PluginMapContext.java:154)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at com.google.gerrit.server.plugincontext.PluginMapContext.runEach(PluginMapContext.java:154)
at com.google.gerrit.server.git.WorkQueue$Executor.isReadyToStart(WorkQueue.java:662)
at com.google.gerrit.server.git.WorkQueue$Executor.waitUntilReadyToStart(WorkQueue.java:634)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:908)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)

Then the gerrit server became unresponsive, even the 
ssh -p admin@xxx gerrit show-connections 
hangs.
    Since there is no ready package on gerrit 3.12.3, so I built the quota myself.
and my gerrit version is 3.12.3 and jdk is 21.
Br,
Yingchun

Adithya Chakilam

unread,
Dec 23, 2025, 4:46:29 PM (14 hours ago) Dec 23
to Repo and Gerrit Discussion

Did you try building the plugin intree or standalone ?

https://gerrit-review.googlesource.com/Documentation/dev-build-plugins.html

Yingchun Li

unread,
2:17 AM (4 hours ago) 2:17 AM
to Repo and Gerrit Discussion
On Wednesday, December 24, 2025 at 5:46:29 AM UTC+8 Adithya Chakilam wrote:

Did you try building the plugin intree or standalone ?

I built the plugin with intree. 
Maybe gerrit version doesn't match is the problem, the gerrit is latest master,
and plugin is also latest master, but I installed the plugin to  gerrit 12.3.
I have downloaded the 12.3 plugin in 
Now it works. Thanks.

I have updated the quota.config on All-Projects, but it seems I still need to restart
the Gerrit server for the changes to take effect. Is that correct?
Br,
Yingchun

Matthias Sohn

unread,
5:38 AM (1 hour ago) 5:38 AM
to Yingchun Li, Repo and Gerrit Discussion
On Wed, Dec 24, 2025 at 8:17 AM Yingchun Li <sword.l...@gmail.com> wrote:


On Wednesday, December 24, 2025 at 5:46:29 AM UTC+8 Adithya Chakilam wrote:

Did you try building the plugin intree or standalone ?

I built the plugin with intree. 
Maybe gerrit version doesn't match is the problem, the gerrit is latest master,
and plugin is also latest master, but I installed the plugin to  gerrit 12.3.
I have downloaded the 12.3 plugin in 
Now it works. Thanks.

I have updated the quota.config on All-Projects, but it seems I still need to restart
the Gerrit server for the changes to take effect. Is that correct?

Restart the quota plugin or the Gerrit server
 
--
--
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/c413023c-eea1-43c7-9a31-5ed62ba479e1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages