ERROR com.google.gerrit.server.inde.OnlineReindexer : Online rindex of changes schema version 48 failed. Succcessfully indexed 0, failed to index 0
[OnlineNoteDbMigrator] ERROR com.google.gerrit.server.notedb.rebuild.NoteDbMigrator : Error Migrating primary storage for XXXX
Additionally, I see[OnlineNoteDbMigrator] ERROR com.google.gerrit.server.notedb.rebuild.NoteDbMigrator : Error Migrating primary storage for XXXX
[Index-Batch-1] ERROR com.google.gerrit.index.Schema : error getting field exactauthor of ChangeData{Change{xxx (xxx), dest=xxx,refs/heads/xxx, status=n}}
com.google.gwtorm.server.OrmException: org.eclipse.jgit.errors.MissingObjectException: Missing Unknown XXXX
ERROR com.google.gerrit.server.notedb.rebuild.NoteDbMigrator : Error Migrating primary storage for XXXX
com.google.gerrit.server.notedb.PrimaryStorageMigrator$NoNoteDbStateException: change XXX has no note_db_state; rebuild it first
It took me more than 12hours to finish offline migration. Can not use that procedure in production environment.
--
--
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/d495af0b-0600-47c8-9a41-569cfc2a8af3%40googlegroups.com.
On 8 Oct 2019, at 15:30, Ray Pelkey <ray.p...@here.com> wrote:we've used on line reindex, as well as online notedb migration. Agree, a 12 hour off line index would be a tough sell for production updates.
--
--
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/6e623a8c-7a22-4f8f-bae5-365d3f519923%40googlegroups.com.
To unsubscribe, email rep...@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-d...@googlegroups.com.
On 8 Oct 2019, at 16:29, Ray Pelkey <ray.p...@here.com> wrote:Hi Lucacould you clarify this just a bit please?
We have a big data base (12gb) and about 10k projects, and in the testing I've performed, the NoteDB, while it takes some hours (about 6) it does not fail.
The installation will drop tables from the database towards the end. To start the online migration, I've just added the auto migrate settings to the gerrit config.your suggesting to not do this?
How does this all work if you do not add the config entries to migrate to noteDB after the installation has already changed the Database tables? The documentation doesn't really seem to be clear here.There's a work in progress option that in testing, I have not opted to use. Will that continue to use the external DB (In our case postgres)
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/a8dbabdf-22d9-4394-aee6-b51be6dfa819%40googlegroups.com.
On 8 Oct 2019, at 16:29, Ray Pelkey <ray.p...@here.com> wrote:Hi Lucacould you clarify this just a bit please?There will be 1h of clarification next month in Sunnyvale :-)The topic of migration is a long one, as Gerrit is a stateful service and between v2.14 and v3.0 there are many radical architectural changes in the architecture.We have a big data base (12gb) and about 10k projects, and in the testing I've performed, the NoteDB, while it takes some hours (about 6) it does not fail.Do not migrate to NoteDb in v2.15, it is NOT mandatory and it would potentially cause problems when you will then migrate to v2.16.(see the bug [1] I've mentioned, it's an accepted P0 without any resolution)
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/084199ED-995E-48FA-B7E8-D3AADE375DF9%40gmail.com.
On 8 Oct 2019, at 16:43, Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Oct 8, 2019 at 5:35 PM Luca Milanesio <luca.mi...@gmail.com> wrote:On 8 Oct 2019, at 16:29, Ray Pelkey <ray.p...@here.com> wrote:Hi Lucacould you clarify this just a bit please?There will be 1h of clarification next month in Sunnyvale :-)The topic of migration is a long one, as Gerrit is a stateful service and between v2.14 and v3.0 there are many radical architectural changes in the architecture.We have a big data base (12gb) and about 10k projects, and in the testing I've performed, the NoteDB, while it takes some hours (about 6) it does not fail.Do not migrate to NoteDb in v2.15, it is NOT mandatory and it would potentially cause problems when you will then migrate to v2.16.(see the bug [1] I've mentioned, it's an accepted P0 without any resolution)I think we should amend the 2.15 release notes [2] and clearly mention this to prevent users from falling into this trap.And we should also mention there how to best do reindexing to avoid long downtimes.
[noteDb "changes"]
autoMigrate = true
to our gerrit config. and I guess all that allows us to continue to use reviewdb
and to reply to Matthias
yes, agree, the doc seems very unclear here, and it's quite easy to follow along with the auto migration course.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/a8dbabdf-22d9-4394-aee6-b51be6dfa819%40googlegroups.com.
On 8 Oct 2019, at 16:43, Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Oct 8, 2019 at 5:35 PM Luca Milanesio <luca.mi...@gmail.com> wrote:On 8 Oct 2019, at 16:29, Ray Pelkey <ray.p...@here.com> wrote:Hi Lucacould you clarify this just a bit please?There will be 1h of clarification next month in Sunnyvale :-)The topic of migration is a long one, as Gerrit is a stateful service and between v2.14 and v3.0 there are many radical architectural changes in the architecture.We have a big data base (12gb) and about 10k projects, and in the testing I've performed, the NoteDB, while it takes some hours (about 6) it does not fail.Do not migrate to NoteDb in v2.15, it is NOT mandatory and it would potentially cause problems when you will then migrate to v2.16.(see the bug [1] I've mentioned, it's an accepted P0 without any resolution)I think we should amend the 2.15 release notes [2] and clearly mention this to prevent users from falling into this trap.And we should also mention there how to best do reindexing to avoid long downtimes.I did it already with [3], in the release notes at [4].Copying here the relevant section:"NoteDb for change metadata is considered reasonably stable, and new sites use it by default. However, because of Issue 10239 it is recommended for existing sites to stay on ReviewDb and migrate to NoteDb only after the upgrade to 2.16."Maybe isn't prominent enough?
"With this release, the new Gerrit storage backend, NoteDb, is officially supported for storing change metadata and is the default storage backend for new installations.
For existing sites, migration to the new backend may be done either offline or online in a running server."
On Tue, Oct 8, 2019 at 5:50 PM Luca Milanesio <luca.mi...@gmail.com> wrote:On 8 Oct 2019, at 16:43, Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Oct 8, 2019 at 5:35 PM Luca Milanesio <luca.mi...@gmail.com> wrote:On 8 Oct 2019, at 16:29, Ray Pelkey <ray.p...@here.com> wrote:Hi Lucacould you clarify this just a bit please?There will be 1h of clarification next month in Sunnyvale :-)The topic of migration is a long one, as Gerrit is a stateful service and between v2.14 and v3.0 there are many radical architectural changes in the architecture.We have a big data base (12gb) and about 10k projects, and in the testing I've performed, the NoteDB, while it takes some hours (about 6) it does not fail.Do not migrate to NoteDb in v2.15, it is NOT mandatory and it would potentially cause problems when you will then migrate to v2.16.(see the bug [1] I've mentioned, it's an accepted P0 without any resolution)I think we should amend the 2.15 release notes [2] and clearly mention this to prevent users from falling into this trap.And we should also mention there how to best do reindexing to avoid long downtimes.I did it already with [3], in the release notes at [4].Copying here the relevant section:"NoteDb for change metadata is considered reasonably stable, and new sites use it by default. However, because of Issue 10239 it is recommended for existing sites to stay on ReviewDb and migrate to NoteDb only after the upgrade to 2.16."Maybe isn't prominent enough?I would move this under "Important Notes" [2] since I would expect those planning an upgrade at least read this section.And the following statements given under [2] contradicts the recommendation given in [4]"With this release, the new Gerrit storage backend, NoteDb, is officially supported for storing change metadata and is the default storage backend for new installations.
For existing sites, migration to the new backend may be done either offline or online in a running server."if we don't recommend to migrate changes to notedb then we should not state it's officially supported.
Instead we should state that this is experimental in 2.15 and leads to problems when upgrading to 2.16and that users should defer this migration to 2.16.
On 8 Oct 2019, at 16:56, Ray Pelkey <ray.p...@here.com> wrote:ha! wont be able to be in Sunnyvale, thank you for clarifying, this is very helpful for us.
this is the spot during the upgradeMigrate draft changes to private changes (default is work-in-progress) [y/N]?
Replace draft changes with work_in_progress changes ...
donebut I don't think that is relevant no that I review this.I guess to circumvent the NoteDB migration we just wont add:[noteDb "changes"]
autoMigrate = true
to our gerrit config. and I guess all that allows us to continue to use reviewdb
and to reply to Matthias
I think we should amend the 2.15 release notes [2] and clearly mention this to prevent users from falling into this trap.And we should also mention there how to best do reindexing to avoid long downtimes.
yes, agree, the doc seems very unclear here, and it's quite easy to follow along with the auto migration course.
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/33dd39fc-a188-4783-b7e1-3e9b58091153%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/33dd39fc-a188-4783-b7e1-3e9b58091153%40googlegroups.com.
On 8 Oct 2019, at 20:36, JR ibkr <jiga...@gmail.com> wrote:Is the following procedure to migrate from 2.14 to 2.15 sounds correct:
- stop gerrit 2.14
- go to etc/gerrit.config and add
- [noteDb "changes"]
- autoMigrate=False
- remove orphan changes from database
- init gerrit 2.15
- start gerrit 2.15
Gerrit upgraded to 2.15 but when I click "My -> changes", it shows 'is:wip' operator is not supported by change index version.
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/69777cff-b47a-46e5-8252-fea2044696a9%40googlegroups.com.
To unsubscribe, email rep...@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-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/69777cff-b47a-46e5-8252-fea2044696a9%40googlegroups.com.