Upgrade to schema 124 (from 123) fails

27 views
Skip to first unread message

Björn Pedersen

unread,
May 3, 2016, 3:34:14 AM5/3/16
to Repo and Gerrit Discussion
Upgrading schema to 124 ...
Migrating data to schema 124 ...
Exception in thread "main" java.lang.UnsupportedOperationException
    at java.util.AbstractList.set(AbstractList.java:132)
    at com.google.gerrit.server.account.VersionedAuthorizedKeys.setKeys(VersionedAuthorizedKeys.java:312)
    at com.google.gerrit.server.schema.Schema_124.migrateData(Schema_124.java:109)
    at com.google.gerrit.server.schema.SchemaVersion.migrateData(SchemaVersion.java:141)
    at com.google.gerrit.server.schema.SchemaVersion.upgradeFrom(SchemaVersion.java:80)
    at com.google.gerrit.server.schema.SchemaVersion.check(SchemaVersion.java:71)
    at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:107)
    at com.google.gerrit.pgm.init.BaseInit$SiteRun.upgradeSchema(BaseInit.java:361)
    at com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:129)
    at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:161)
    at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:102)
    at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:59)
    at Main.main(Main.java:25)

System is set up with H2 db backend.

Björn Pedersen

unread,
May 3, 2016, 3:53:32 AM5/3/16
to Repo and Gerrit Discussion

The problem is the use of nCopies, as this generates an immutable list,so  setting elements later is not possible.
But I have no idea how to fix that.


Edwin Kempin

unread,
May 3, 2016, 4:04:36 AM5/3/16
to Björn Pedersen, Repo and Gerrit Discussion
Sorry, that was a last minute fix in my change :(
Will push a fix for this soon.

On Tue, May 3, 2016 at 9:53 AM, 'Björn Pedersen' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:

The problem is the use of nCopies, as this generates an immutable list,so  setting elements later is not possible.
But I have no idea how to fix that.


--
--
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.

Edwin Kempin

Software Engineer

eke...@google.com

+16502534437

Google Germany GmbH

Dienerstraße 12

80331 München


Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen Sie die E-Mail und alle Anhänge. Vielen Dank.

      

This e-mail is confidential. If you are not the right addressee please do not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks.

Edwin Kempin

unread,
May 3, 2016, 4:25:07 AM5/3/16
to Björn Pedersen, Repo and Gerrit Discussion
On Tue, May 3, 2016 at 10:03 AM, Edwin Kempin <eke...@google.com> wrote:
Sorry, that was a last minute fix in my change :(
Will push a fix for this soon.
Reply all
Reply to author
Forward
0 new messages