1) Error in custom provider, com.google.inject.OutOfScopeException: Not in command/request
at com.google.gerrit.sshd.SshModule.configureRequestScope(SshModule.java:121)
while locating java.net.SocketAddress annotated with interface com.google.gerrit.server.RemotePeer
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1028)
at com.google.gerrit.server.IdentifiedUser.newRefLogIdent(IdentifiedUser.java:327)
at com.google.gerrit.server.git.BatchUpdate$ChangeTask.stageNoteDbUpdate(BatchUpdate.java:1058)
at com.google.gerrit.server.git.BatchUpdate$ChangeTask.call(BatchUpdate.java:968)
at com.google.gerrit.server.git.BatchUpdate$ChangeTask.call(BatchUpdate.java:930)
at com.google.gerrit.server.git.BatchUpdate$ChangeTask.call(BatchUpdate.java:1)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.inject.OutOfScopeException: Not in command/request
at com.google.gerrit.sshd.SshScope.requireContext(SshScope.java:152)
at com.google.gerrit.sshd.SshScope.access$0(SshScope.java:149)
at com.google.gerrit.sshd.SshScope$1$1.get(SshScope.java:189)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
... 11 more
I'm bisecting now to find the offending commit ... but in the meantime I can't enable again verification because the CI would fail any incoming changes.
More details to follow.
Luca.
More details to follow.
Luca.
--
--
To unsubscribe, email repo-discuss+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Luca.
--
--
To unsubscribe, email repo-discuss+unsub...@googlegroups.com
And the winner is ... Dave :-)
commit 33f08a612f3835fdc7ae449bf1dc7d7cbf4dc7a7
Author: Dave Borowitz <dbor...@google.com>
Date: Thu Dec 22 11:28:20 2016 -0500
NoteDbUpdateManager: Set reflog message and identity
Change-Id: Iab0aae68d6f121829529c6714636eed90c3ba929Let me work on a fix.
Luca.
Luca.
--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
Look at the code, it looks fine to me as well :-)I reckon the code change has highlighted a problem where the BatchUpdate gets instantiated with an Identified user not linked to a remote peer.The test-case, however, was using an SSH connection so it should have had a remote peer.Will keep on my investigation ...
Luca.