My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3301: Error reloading replication plugin - stable 2.11 rc2
2 people starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Apr 2015
Cc:  david.pu...@sonymobile.com, mf...@codeaurora.org


Sign in to add a comment
 
Reported by janice.p...@gmail.com, Apr 15, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: stable2.11-rc2

What steps will reproduce the problem?
1. reload the replication plugin

What is the expected output? What do you see instead?
$ ssh -p 29418 localhost gerrit plugin reload replication
fatal: Unable to create injector, see the following errors:

1) An exception was caught and reported. Message: Event type already registered: ref-replicated
  at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:135)

1 error

Stack trace:

[2015-04-15 10:03:11,707] WARN  com.google.gerrit.server.plugins.PluginLoader : Cannot reload plugin replication
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) An exception was caught and reported. Message: Event type already registered: ref-replicated
  at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:135)

1 error
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:448)
        at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
        at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:225)
        at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:232)
        at com.google.gerrit.server.plugins.ServerPlugin.startPlugin(ServerPlugin.java:187)
        at com.google.gerrit.server.plugins.ServerPlugin.start(ServerPlugin.java:170)
        at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:461)
        at com.google.gerrit.server.plugins.PluginLoader.reload(PluginLoader.java:345)
        at com.google.gerrit.sshd.commands.PluginReloadCommand.run(PluginReloadCommand.java:51)
        at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:35)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:445)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:379)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalArgumentException: Event type already registered: ref-replicated
        at com.google.gerrit.server.events.EventTypes.registerClass(EventTypes.java:49)
        at com.googlesource.gerrit.plugins.replication.ReplicationModule.configure(ReplicationModule.java:66)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:253)
        at com.google.inject.spi.Elements.getElements(Elements.java:108)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:135)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
        ... 17 more

Please provide any additional information below.

I suspect that this bug is related to this change: https://gerrit-review.googlesource.com/#/c/62516
This means that reloading any plugin which tries to register an EventType will also result in this error.

Apr 15, 2015
Project Member #1 huga...@gmail.com
David, I think this one should be fixed before releasing 2.11
Cc: david.pu...@sonymobile.com
Labels: -Priority-Minor
Apr 15, 2015
Project Member #2 huga...@gmail.com
(No comment was entered for this change.)
Labels: Priority-Major
Apr 15, 2015
Project Member #3 david.pu...@sonymobile.com
(No comment was entered for this change.)
Cc: mf...@codeaurora.org
Apr 15, 2015
Project Member #4 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Accepted
Apr 15, 2015
Project Member #5 david.pu...@sonymobile.com
https://gerrit-review.googlesource.com/67151
Status: ChangeUnderReview
Apr 15, 2015
Project Member #6 david.pu...@sonymobile.com
(No comment was entered for this change.)
Labels: Blocking-2.11
Apr 16, 2015
Project Member #7 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Submitted
Labels: -Blocking-2.11 FixedIn-2.11
Apr 16, 2015
Project Member #8 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Released
Apr 20, 2015
#9 yingsu...@gmail.com
Could you please help to confirm when this fix will be release in webpage https://gerrit-releases.storage.googleapis.com/index.html?
And also help to identify which release would include this fix?
Apr 20, 2015
Project Member #10 edwin.ke...@gmail.com
As you can see from the 'FixedIn-2.11' label and the 'Released' state of this issue, this bug was fixed with Gerrit 2.11.
Apr 22, 2015
#11 yingsu...@gmail.com
Could you please help to provide a link include Gerrit2.11 installation package with this fix?
Sign in to add a comment

Powered by Google Project Hosting