Hi all,
I would like to ask few question regarding the reindex feature (offline and online).
Just to give you a context:
I wanted to rename one of the project on gerrit. So basically I fallowed one of the tutorial which I found on this mailing list.
The problem is that for some reason (to those who are curious I forgot to press commit in Oracle - yep) I did not perform changes in the database before starting reindexing.
So basically it should go like this:
UPDATE CHANGES set DEST_PROJECT_NAME='projA' where DEST_PROJECT_NAME='projB';
update ACCOUNT_PROJECT_WATCHES SET PROJECT_NAME = 'projA' where PROJECT_NAME = 'projB';
and the do the reindexing. But as I already mentioned I forgot to commit those changes so the database didn't changed.
I renamed git repository on the file system.
So after few hours of reindexing (offline reindexing) system was back online but the problem is that non of the change from 'projB/projA' was visible in the gerrit (If I knew the change id I could open it but could not search for it nor see it on dashboard).
I thought that I will just change the database (this time press the commit :) ) and do the online reindexing (gerrit v 2.11.4) as I didn't wanted to block developers this time.
The problem is that as soon as I will try to do it:
ssh gerrit-host gerrit index start
and I am getting:
Nothing to reindex, index is already the latest version
Items are still not available on the dashboards nor over search.
Just to mention that as soon as I will touch one of the change (like leave a commend, add reviewer) it will appear back on the dashboard (The index is refreshed? )
And here are the questions:
Is there a way to force online reindexing - skip this check?
Is there a way to limit reindexing (offline/online) just to one project?
If I will change the number in gerrit_index.config to a lower one will this help somehow (like allow me to run it)?
Since the database didn't change why the reindex happend? Why it took so long (over few hours) - could be that the index was low because someone forgot to reindex database after one of the upgrade?
Thanks a lot for explanation.
Best regards
Robert
--
--
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.
Enter host password for user 'username':
HTTP/1.1 204 No ContentDate: Mon, 20 Aug 2018 08:46:14 GMTContent-Disposition: attachmentX-Content-Type-Options: nosniffCache-Control: no-cache, no-store, max-age=0, must-revalidatePragma: no-cacheExpires: Mon, 01 Jan 1990 00:00:00 GMT