CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

JGit "pack is corrupt, removing it from pack list" #3361

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 2.10.2-23-g039a170

What steps will reproduce the problem?

Go to https://review.openstack.org/#/c/181918/

What is the expected output? 

A review

What do you see instead?

Nothing

Please provide any additional information below.

Stack trace: http://fpaste.org/220778/13691291/

Original issue reported on code.google.com by everett....@gmail.com on 11 May 2015 at 6:39

GoogleCodeExporter commented 9 years ago
It was reported to dev ML: [1], that the attempt to read pack file wasn't 
successful:

[2015-05-11 16:30:13,687] ERROR 
org.eclipse.jgit.internal.storage.file.ObjectDirectory : Pack file 
/home/gerrit2/review_site/git/openstack/nova.git/objects/pack/pack-93ad57004de88
7eb835b2bd4df2d7c3f6a5c394b.pack is corrupt, removing it from pack list
org.eclipse.jgit.errors.CorruptObjectException: Object at 87,706,216 in 
/home/gerrit2/review_site/git/openstack/nova.git/objects/pack/pack-93ad57004de88
7eb835b2bd4df2d7c3f6a5c394b.pack has bad zlib stream
        at org.eclipse.jgit.internal.storage.file.PackFile.load(PackFile.java:840)
        at org.eclipse.jgit.internal.storage.file.PackFile.get(PackFile.java:259)
        at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedObject(ObjectDirectory.java:417)
        at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:386)
        at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:378)
        at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
        at org.eclipse.jgit.diff.ContentSource$ObjectReaderSource.open(ContentSource.java:140)
        at org.eclipse.jgit.diff.ContentSource$Pair.open(ContentSource.java:276)
        at org.eclipse.jgit.diff.DiffFormatter.open(DiffFormatter.java:1033)
        at org.eclipse.jgit.diff.DiffFormatter.createFormatResult(DiffFormatter.java:963)
        at org.eclipse.jgit.diff.DiffFormatter.toFileHeader(DiffFormatter.java:928)
        at com.google.gerrit.server.patch.PatchListLoader$2.call(PatchListLoader.java:203)
        at com.google.gerrit.server.patch.PatchListLoader$2.call(PatchListLoader.java:200)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        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:745)
Caused by: java.util.zip.DataFormatException
        at org.eclipse.jgit.internal.storage.file.WindowCursor.inflate(WindowCursor.java:323)
        at org.eclipse.jgit.internal.storage.file.PackFile.decompress(PackFile.java:340)
        at org.eclipse.jgit.internal.storage.file.PackFile.load(PackFile.java:813)
        ... 16 more

[1] https://groups.google.com/forum/#!topic/repo-discuss/CYYoHfDxCfA

Original comment by David.Os...@gmail.com on 15 May 2015 at 7:46

GoogleCodeExporter commented 9 years ago
Were you able to reproduce the problem?

Original comment by David.Os...@gmail.com on 15 May 2015 at 7:49

GoogleCodeExporter commented 9 years ago
Looks like OpenStack reverted to 2.8.4-19-g4548330 as of writing this.

Can't reproduce at the moment.

Original comment by everett....@gmail.com on 15 May 2015 at 8:07

GoogleCodeExporter commented 9 years ago
We upgraded to Gerrit 2.10 this morning and have seen this issue twice, 
affecting three different repositories. The only work-around we've found so far 
is restarting our Gerrit instance.

Original comment by jt...@evernote.com on 15 May 2015 at 11:59

GoogleCodeExporter commented 9 years ago
What 2.10 version are you using? In case of OpenStack, it was 2.10.2 with JGit 
3.7 that is known to suffer from this JGit regression: [1]. Only 2.10.4 is free 
from this issue, with bundled JGit 4.0.0.201505050340-m2.

Can you provide more details on how to reproduce this issue, so that we can 
investigate it in development environment?

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=465509

Original comment by David.Os...@gmail.com on 17 May 2015 at 8:17

GoogleCodeExporter commented 9 years ago
Sorry - I misspoke; we upgraded to Gerrit 2.11. I don't have any more details 
yet but will be working this week to figure out reproduction steps.

Original comment by jt...@evernote.com on 18 May 2015 at 4:46

GoogleCodeExporter commented 9 years ago
Gerrit 2.11 has the same JGit version as 2.10 (untill 2.10.4) and thus affected 
by JGit regression mentioned in my previous comment. stable-2.11 branch was 
fixed and JGit was upgraded to 4.0.0.201505050340-m2.jar, but 2.11.1 with this 
fix wasn't released yet. Pick the latest buid from Gerrit CI and try the latest 
2.11 version available: [1]. Verify the JGit version:

  $ jar -tf release.war | grep org.eclipse.jgit-
  WEB-INF/lib/org.eclipse.jgit-4.0.0.201505050340-m2.jar

[1] 
https://ci.gerritforge.com/view/Gerrit/job/Gerrit-stable-2.11/lastSuccessfulBuil
d/artifact/buck-out/gen/release.war

Original comment by David.Os...@gmail.com on 19 May 2015 at 5:00