My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 677: Unable to upload and submit patch to Gerrit
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Aug 2010


Sign in to add a comment
 
Reported by rbt...@gmail.com, Aug 22, 2010
Affected Version: 2.1.4

What steps will reproduce the problem?
1. Upload a patch to Gerrit (repo upload . or git push ssh://XXX_XXX@IP:29418/PATH HEAD:refs/for/BRANCH), which will success
2. Try to upload another patch 
3. Try click the "submit" button at Gerrit will failed

What is the expected output? What do you see instead?
1. Expected: able to upload patch or submit patch
2. Server keeps printing "Internal server error during gitreceive-pack"
[2010-08-23 11:07:49,941] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user steven_chiu account 37) during git-receive-pack '/platform/frameworks/base.git'
java.lang.IllegalStateException
        at org.eclipse.jgit.util.RefMap$SetIterator.resolveLoose(RefMap.java:354)
        at org.eclipse.jgit.util.RefMap$SetIterator.peek(RefMap.java:334)
        at org.eclipse.jgit.util.RefMap$SetIterator.next(RefMap.java:315)
        at org.eclipse.jgit.util.RefMap$SetIterator.next(RefMap.java:289)
        at java.util.AbstractMap$2$1.next(AbstractMap.java:360)
        at org.eclipse.jgit.transport.RefAdvertiser.send(RefAdvertiser.java:172)
        at org.eclipse.jgit.transport.ReceivePack.sendAdvertisedRefs(ReceivePack.java:697)
        at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:617)
        at org.eclipse.jgit.transport.ReceivePack.receive(ReceivePack.java:576)
        at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:78)
        at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:104)
        at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:34)
        at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:69)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:395)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:324)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

Please provide any additional information below.
I'm able to workaround the issue by running the command "git gc" at the faulting GIT repository.
Aug 23, 2010
#1 rbt...@gmail.com
I found the root cause of this issue. It seems some refspec in my repository is broken. Therefore, the Gerrit always dumps IllegalStatException.
Please ignore this issue. thanks

Aug 23, 2010
#2 sop@google.com
(No comment was entered for this change.)
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting