Page MenuHomePhabricator

Support renaming repositories in Gerrit
Open, LowPublic

Description

My understanding is that the Gerrit metadata will no more be in the database and would only be in the Git repository (known as NoteDB). Gerrit the index those metadata from git into a faster system (the secondary index, supported by Lucene).

So if I get it right, renaming a repository would mean something like:

  • stop Gerrit
  • move the git repository on disk
  • run offline indexing to get rid of the old repository and notice the new repository
  • start Gerrit
  • Possibly flush the project_list cache? Had an issue with the parentproject:integration query after deleting a repository ( T263682 ). Can be done using gerrit flush-caches --cache project_list

But:

  • the offline indexing takes age iirc (roughly an hour when we did it for Gerrit 3.2 upgrade).
  • online indexing does not seem to support deleting informations for a no more existing repository

Gerrit mailing list discussion (2020-09-14): https://groups.google.com/g/repo-discuss/c/ZPVSc5h2hNw

Event Timeline

hashar created this task.Dec 3 2019, 10:08 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 3 2019, 10:08 AM

Filled that task since I could not find a task to support renaming repositories. At least no task that express the feature request.

This should be supported with the online indexer I think (I remember testing this but it was on a different version and also a while ago)

Under 2.16+ you need to reindex the project index and changes.

hashar triaged this task as Low priority.Sep 14 2020, 7:47 AM

I have bring it up to the Gerrit discussion mailing list at https://groups.google.com/g/repo-discuss/c/ZPVSc5h2hNw

hashar updated the task description. (Show Details)Sep 14 2020, 7:47 AM
hashar updated the task description. (Show Details)Sep 23 2020, 7:16 PM