About gerrit upgrade

95 views
Skip to first unread message

Z

unread,
Jan 14, 2025, 2:00:59 AM1/14/25
to Repo and Gerrit Discussion
Hi, guy.

I hava a very old gerrit and the version is 2.13.14, I want to upgrade to newer version.

And first I want to upgrade it to 2.14.22, but when I finish reindex group offlinex.

And restart gerrit , accounts and changes can be reindexed automatically,   why?

Thanks.

Sven Selberg

unread,
Jan 14, 2025, 2:15:09 AM1/14/25
to Repo and Gerrit Discussion
I don't think I understand the question entirely but IIRC the reason why you needed to do the offline "reindex" for groups is that this index was new to 2.14, and an offline "reindex" was necessary to create the index in the first place.
I.e. there were no existing index to migrate to a new Scheme.
Whereas Account and Changes index already existed and could be used to migrate existing entries to the new Scheme.
 

Thanks.

Sven Selberg

unread,
Jan 14, 2025, 2:30:41 AM1/14/25
to Z, repo-d...@googlegroups.com
Don't forget the group.

From: Z <vista...@gmail.com>
Sent: Tuesday, 14 January 2025 08:26
To: Sven Selberg <Sven.S...@axis.com>
Subject: 與 About gerrit upgrade 有關的私人訊息
 
You don't often get email from vista...@gmail.com. Learn why this is important
At the releasenote of 2.14   https://www.gerritcodereview.com/2.14.html

Only groups must be reindxed offline,  account and changes can not.

Snipaste_2025-01-14_15-24-46.png



Sven Selberg 在 2025年1月14日 星期二下午3:15:09 [UTC+8] 的信中寫道:

Sven Selberg

unread,
Jan 14, 2025, 2:33:43 AM1/14/25
to Repo and Gerrit Discussion
On Tuesday, January 14, 2025 at 8:30:41 AM UTC+1 Sven Selberg wrote:
Don't forget the group.

From: Z <vista...@gmail.com>
Sent: Tuesday, 14 January 2025 08:26
To: Sven Selberg <Sven.S...@axis.com>
Subject: 與 About gerrit upgrade 有關的私人訊息
 
You don't often get email from vista...@gmail.com. Learn why this is important
At the releasenote of 2.14   https://www.gerritcodereview.com/2.14.html

Only groups must be reindxed offline,  account and changes can not.

Oh, you absolutely can redindex accounts and changes ("... it is not necessary to reindex the changes and accounts indexes offline."), it's just that you don't have to since they already exists (see my previous comment).

Sven Selberg

unread,
Jan 14, 2025, 6:30:06 AM1/14/25
to Z, repo-d...@googlegroups.com
Once again, don't forget the mailing list.

From: Z <vista...@gmail.com>
Sent: Tuesday, 14 January 2025 11:26
To: Sven Selberg <Sven.S...@axis.com>
Subject: 與 與 About gerrit upgrade 有關的私人訊息 有關的私人訊息
 
Hi, bro:

About the index date of lucene
gerrit 2.12.x  ---->  changes_0025
gerrit 2.13.x  ---->  changes_0032

In fact,  the "changes_0025"  is used by my gerrit 2.13.14  not the "changes_0032" 
And  I find the "changes_0032" dir is empty

How to make my old gerrit(2.13.14)  use the "changes_0032"?

Thanks.

Sven Selberg 在 2025年1月14日 星期二下午3:33:43 [UTC+8] 的信中寫道:

Sven Selberg

unread,
Jan 15, 2025, 2:31:53 AM1/15/25
to Repo and Gerrit Discussion
On Tuesday, January 14, 2025 at 12:30:06 PM UTC+1 Sven Selberg wrote:
Once again, don't forget the mailing list.

From: Z <vista...@gmail.com>
Sent: Tuesday, 14 January 2025 11:26
To: Sven Selberg <Sven.S...@axis.com>
Subject: 與 與 About gerrit upgrade 有關的私人訊息 有關的私人訊息
 
Hi, bro:

About the index date of lucene
gerrit 2.12.x  ---->  changes_0025
gerrit 2.13.x  ---->  changes_0032

In fact,  the "changes_0025"  is used by my gerrit 2.13.14  not the "changes_0032" 
And  I find the "changes_0032" dir is empty

How to make my old gerrit(2.13.14)  use the "changes_0032"?

It was a looong time since I worked with 2.13, not sure why the changes_0032 would be empty, don't know if it's an issue or not. The online reindexer should update the index after running 2.13 for a while.
The Release notes doesn't jolt my memory.
If you don't have a huge instance I would just do an offline reindex for the changes and accounts index as well. That way you are sure that you have up-to-date indices.
Reply all
Reply to author
Forward
0 new messages