Offline migration to 2.15-rc3 NoteDB

112 views
Skip to first unread message

Hochhaus, Andy

unread,
Mar 14, 2018, 6:13:32 PM3/14/18
to Repo and Gerrit Discussion
Hello,

I am performing an offline migration from 2.4.17 (postgres) to 2.15.
Doing so, I receive two errors:

```
java.util.concurrent.ExecutionException:
org.eclipse.jgit.errors.MissingObjectException: Missing unknown
cbc7fc1354056a978769492d1f20ac25e46870aa
...
java.util.concurrent.ExecutionException:
org.eclipse.jgit.errors.MissingObjectException: Missing unknown
f74ecfb6ba80e9a126f4ff35864acd72161df617
```

I am guessing this is due to draft comments on two changes. I'm
alright losing those draft comments, but I'm uncertain how to remove
them from the database. Any pointers?

Best,
-Andy

Matthew Webber

unread,
Mar 15, 2018, 6:34:04 AM3/15/18
to Repo and Gerrit Discussion
I am performing an offline migration from 2.4.17 (postgres) to 2.15.
Doing so, I receive two errors:

Hi Andy,
As far as I'm aware, the draft comments should migrate correctly.
Can I suggest that you open a ticket (at https://bugs.chromium.org/p/gerrit/issues/list) and include the commands you used, and the full output from the migrate , and the full stack trace.
Regards
Matthew
 

Dave Borowitz

unread,
Mar 15, 2018, 9:52:56 AM3/15/18
to Matthew Webber, repo-discuss
Please do file a bug, and include the full stack trace.


--
--
To unsubscribe, email repo-discuss...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hochhaus, Andy

unread,
Mar 15, 2018, 3:56:56 PM3/15/18
to Dave Borowitz, Matthew Webber, repo-discuss

lucamilanesio

unread,
Mar 16, 2018, 6:18:49 AM3/16/18
to Repo and Gerrit Discussion
I got the same problem on GerritHub.io:

gerrit-green_1    | [2018-03-16 10:17:05,532] [OnlineNoteDbMigrator] ERROR com.google.gerrit.server.notedb.rebuild.NoteDbMigrator : Failed to rebuild change 280604

gerrit-green_1    | org.eclipse.jgit.errors.MissingObjectException: Missing unknown cb02d8a7789db150163d31c7be40d3cd95037efd

gerrit-green_1    | at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:163)

gerrit-green_1    | at org.eclipse.jgit.internal.storage.file.PackInserter$Reader.open(PackInserter.java:569)

gerrit-green_1    | at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:234)

gerrit-green_1    | at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:859)

gerrit-green_1    | at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:772)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.ChangeRebuilderImpl.getHashtagsEvents(ChangeRebuilderImpl.java:573)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.ChangeRebuilderImpl.buildUpdates(ChangeRebuilderImpl.java:329)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.NoteDbMigrator.rebuild(NoteDbMigrator.java:897)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.NoteDbMigrator.rebuildProject(NoteDbMigrator.java:833)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.NoteDbMigrator.lambda$rebuild$5(NoteDbMigrator.java:723)

gerrit-green_1    | at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)

gerrit-green_1    | at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)

gerrit-green_1    | at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)

gerrit-green_1    | at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:260)

gerrit-green_1    | at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

gerrit-green_1    | at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:66)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.NoteDbMigrator.rebuild(NoteDbMigrator.java:720)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.NoteDbMigrator.rebuildAndEnableReads(NoteDbMigrator.java:553)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.NoteDbMigrator.migrate(NoteDbMigrator.java:510)

gerrit-green_1    | at com.google.gerrit.server.notedb.rebuild.OnlineNoteDbMigrator.migrate(OnlineNoteDbMigrator.java:87)

lucamilanesio

unread,
Mar 16, 2018, 6:22:59 AM3/16/18
to Repo and Gerrit Discussion
The change 280604 definitely exists:

Let me check why the SHA1 can't be found.

Luca.

Luca Milanesio

unread,
Mar 16, 2018, 6:26:01 AM3/16/18
to Repo and Gerrit Discussion, Luca Milanesio
I'll add my comments on the issue and start investigating on it more deeply at code-level.

Luca.

thomasmu...@yahoo.com

unread,
Mar 16, 2018, 6:58:00 AM3/16/18
to Repo and Gerrit Discussion
@Luca the change does not show for me, it shows


Code Review - Session Expired
Session Expired
You are no longer signed in to Gerrit Code Review.

To continue, please sign-in again.

thomasmu...@yahoo.com

unread,
Mar 16, 2018, 6:59:05 AM3/16/18
to Repo and Gerrit Discussion
And then I get

“Code Review - Error
The page you requested was not found, or you do not have permission to view this page.
Continue”

When I sign in.

Luca Milanesio

unread,
Mar 16, 2018, 7:01:02 AM3/16/18
to thomasmu...@yahoo.com, Luca Milanesio, Repo and Gerrit Discussion
Oh yes, I forgot that you can't see it because it belongs to a private project which is not visible to you because you don't belong to that Company.
However, trust me ... it exists :-)

Luca.
Reply all
Reply to author
Forward
0 new messages