[2019-09-04 09:54:52,210] [RebuildChange-1] ERROR com.google.gerrit.server.notedb.rebuild.NoteDbMigrator : Error migrating primary storage for 1
com.google.gerrit.server.notedb.PrimaryStorageMigrator$NoNoteDbStateException: change 1 has no note_db_state; rebuild it first
at com.google.gerrit.server.notedb.PrimaryStorageMigrator$1.update(PrimaryStorageMigrator.java:299)
at com.google.gerrit.server.notedb.PrimaryStorageMigrator$1.update(PrimaryStorageMigrator.java:289)
at com.google.gwtorm.server.AbstractAccess.atomicUpdate(AbstractAccess.java:80)
at com.google.gerrit.server.notedb.PrimaryStorageMigrator.setReadOnlyInReviewDb(PrimaryStorageMigrator.java:287)
at com.google.gerrit.server.notedb.PrimaryStorageMigrator.migrateToNoteDbPrimary(PrimaryStorageMigrator.java:254)
at com.google.gerrit.server.notedb.rebuild.NoteDbMigrator.lambda$setNoteDbPrimary$2(NoteDbMigrator.java:637)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:83)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:646)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
On 6 Sep 2019, at 15:43, Doug Luedtke <douglas...@gmail.com> wrote:We hit this with Gerrit 2.16.10 and an online migration while testing in a lower environment. The migration process seemed to heal itself after another pass. The additional pass was automatic during the online migration. It completed the first pass in about 3 hours and that error. Then another 2.5 hours it had corrected itself and marked the migration as complete.
Do I know what the migration did to fix it? No. And now that others report they were not able to get past the problem worries me for when we go to production with 2.16.10/11/etc.
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/fd18f476-aade-4caa-ba6d-b947bafa0e1b%40googlegroups.com.
On 6 Sep 2019, at 16:33, Martin Fick <mf...@codeaurora.org> wrote:On Friday, September 6, 2019 4:24:18 PM MDT Luca Milanesio wrote:On 6 Sep 2019, at 15:43, Doug Luedtke <douglas...@gmail.com> wrote:From my experience of migration to NoteDb on GerritHub.io
We hit this with Gerrit 2.16.10 and an online migration while testing in a
lower environment. The migration process seemed to heal itself after
another pass. The additional pass was automatic during the online
migration. It completed the first pass in about 3 hours and that error.
Then another 2.5 hours it had corrected itself and marked the migration
as complete.
<http://gerrithub.io/>, you need to treat the Gerrit v2.16 version as two
separate migrations:
a) Migration to v2.16 / ReviewDb
b) (OnLine)Migration from ReviewDb to NoteDb
When we tried to do a) and b) all at once on GerritHub.io
<http://gerrithub.io/> (test environment) we miserably failed with similar
errors. When we broken them down into two phases (a) (b) then we succeeded.
This is rather a scary premonition to those looking to upgrade. It sounds like
gerrit 2.16 is not yet ready for consumption in production?
Should we really
be recommending people upgrade to it if ?
On 6 Sep 2019, at 16:37, Luca Milanesio <Luca.Mi...@gmail.com> wrote:On 6 Sep 2019, at 16:33, Martin Fick <mf...@codeaurora.org> wrote:On Friday, September 6, 2019 4:24:18 PM MDT Luca Milanesio wrote:On 6 Sep 2019, at 15:43, Doug Luedtke <douglas...@gmail.com> wrote:From my experience of migration to NoteDb on GerritHub.io
We hit this with Gerrit 2.16.10 and an online migration while testing in a
lower environment. The migration process seemed to heal itself after
another pass. The additional pass was automatic during the online
migration. It completed the first pass in about 3 hours and that error.
Then another 2.5 hours it had corrected itself and marked the migration
as complete.
<http://gerrithub.io/>, you need to treat the Gerrit v2.16 version as two
separate migrations:
a) Migration to v2.16 / ReviewDb
b) (OnLine)Migration from ReviewDb to NoteDb
When we tried to do a) and b) all at once on GerritHub.io
<http://gerrithub.io/> (test environment) we miserably failed with similar
errors. When we broken them down into two phases (a) (b) then we succeeded.
This is rather a scary premonition to those looking to upgrade. It sounds like
gerrit 2.16 is not yet ready for consumption in production?We have been running v2.16 in prod as soon as it was available, and then migrated to v3.0 ... and we have 100% availability on GerritHub.io :-)With versions prior to v2.16, we actually had outages due to pretty serious problems, that have been now fixed.
Experiencing same issue.Can not migrate changes to noteDB.Migration from 2.15.3 -> 2.16.10.
On Friday, September 6, 2019 at 9:32:28 AM UTC+2, Alan Tokaev wrote:Experiencing same issue.Can not migrate changes to noteDB.Migration from 2.15.3 -> 2.16.10.After debugging the problem I was able to identify the root cause.We had ca. 11K "orphan changes" without git repos (the repos were deleted from the file system).This was the cause, why note_db_state couldn't be written.For all missing projects there is one warning in the log that could be easily overlooked:Repository foo not foundSource:The solution was to clean up the database for the corrupted changes by deleting them from the tables.CHANGES, PATCH_SETS, etc.To summarize, the missing NoteDb state exception during the NoteDb migration indicates corruption in the database. The only question ist, what kind of corruption it is.
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/e62d9f40-8651-4bde-af6a-a9719dceba08%40googlegroups.com.
On 9 Sep 2019, at 08:21, 'Edwin Kempin' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:I think we are aware that upgrade strategies are not properly documented:It would be great if anyone could help with that!
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CACA_R4%2BDM1N%2Bkv-4AvGN3r_a5V279hf99afYJf18ckptLJvfEw%40mail.gmail.com.
On 9 Sep 2019, at 08:21, 'Edwin Kempin' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:I think we are aware that upgrade strategies are not properly documented:It would be great if anyone could help with that!It's already on my backlog: will work and present on that in November at the Gerrit User Summit 2019 in Sunnyvale.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/C6E71357-5A97-413A-8363-62780977D57F%40gmail.com.
"The solution was to clean up the database for the corrupted changes by deleting them from the tables.CHANGES, PATCH_SETS, etc. " - What is the best way of doing this? Any documentation?
"So I would recommend to debug the migration process." - Are there any documented ways of doing this?
Could you link to the CI job so that I can find the correct file?