Help! Change damages randomly when submit, after upgrade gerrit from 2.8.6 to 2.11.6

55 views
Skip to first unread message

ztt8...@163.com

unread,
Aug 25, 2016, 3:56:35 AM8/25/16
to Repo and Gerrit Discussion
After upgrade gerrit from 2.8.6 to 2.11, our server has an error as bellow:

1) This happens randomly, in the last two weeks, it appears three times in three different git projects.

2) It happens after click submit button and the submit operation has no error tips.

3) After click submit button, and open the merged changes, it shows as the picture  even I'm administrator.
4) I can get the change_id data from tables of changes,change_messages,patch_sets and so on in DB.

5) In gerrit server, log is:

WARN  com.google.gerrit.server.patch.PatchListLoader : Error computing PatchListKey[terminal/tv-letvApp BASE..da259c8db89c2fc1857a2573386fe388d4955eca IGNORE_NONE] 

java.util.concurrent.ExecutionException: org.eclipse.jgit.errors.MissingObjectException: Missing tree c2e544f84b5ba647cc4f89e31799178e3882197a

        at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)

        at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)

        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)

        at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:137)

        at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2348)

        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2320)

        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)

        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)

        at com.google.common.cache.LocalCache.get(LocalCache.java:3937)

        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)

        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)

        at com.google.gerrit.server.cache.h2.H2CacheImpl.get(H2CacheImpl.java:113)

        at com.google.gerrit.server.patch.PatchListCacheImpl.get(PatchListCacheImpl.java:82)

        at com.google.gerrit.server.patch.PatchListCacheImpl.get(PatchListCacheImpl.java:100)

        at com.google.gerrit.server.query.change.ChangeData.filePaths(ChangeData.java:355)

        at com.google.gerrit.server.query.change.ChangeData.currentFilePaths(ChangeData.java:343)

        at com.google.gerrit.server.index.ChangeField.getFileParts(ChangeField.java:188)

        at com.google.gerrit.server.index.ChangeField$11.get(ChangeField.java:228)

        at com.google.gerrit.server.index.ChangeField$11.get(ChangeField.java:224)

        at com.google.gerrit.server.index.Schema$1.apply(Schema.java:100)

        at com.google.gerrit.server.index.Schema$1.apply(Schema.java:95)

        at com.google.common.collect.Iterators$8.transform(Iterators.java:799)

        at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)

        at com.google.common.collect.Iterators$7.computeNext(Iterators.java:651)

        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)

        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)

        at com.google.gerrit.lucene.LuceneChangeIndex.toDocument(LuceneChangeIndex.java:499)

        .........

6) The clients cannot git clone/pull/fetch and git version is 2.7.4.


   $ git fetch

        fatal: internal server error

        remote: internal server error 

        fatal: protocol error: bad pack header


7) Revert to the last commit should resolve this issue, but needs developer git push the changes again.

8) I try reindex it, and seems it doesn't work yet.

Any idea what happened to it?  Anyone else have this problem?

 

Sven Selberg

unread,
Aug 25, 2016, 4:02:43 AM8/25/16
to Repo and Gerrit Discussion
Message has been deleted

ztt8...@163.com

unread,
Aug 25, 2016, 4:06:50 AM8/25/16
to Repo and Gerrit Discussion
Thanks Sven.

The clients git version is 2.7.4, and the server git version is also 2.7.4. I think this isn't caused by git version, is it?

在 2016年8月25日星期四 UTC+8下午4:04:49,ztt8...@163.com写道:


在 2016年8月25日星期四 UTC+8下午4:02:43,Sven Selberg写道:

Sven Selberg

unread,
Aug 25, 2016, 4:43:24 AM8/25/16
to Repo and Gerrit Discussion


Den torsdag 25 augusti 2016 kl. 10:06:50 UTC+2 skrev ztt8...@163.com:
Thanks Sven.

The clients git version is 2.7.4, and the server git version is also 2.7.4. I think this isn't caused by git version, is it?
Wouldn't be my first guess no. :-)

/Sven
Reply all
Reply to author
Forward
0 new messages