Files
gerrit/gerrit-pgm
Edwin Kempin 8803103ebe LocalUsernamesToLowerCase: Reindex accounts after updating external IDs
LocalUsernamesToLowerCase is changing the case of external IDs in the
"gerrit" scheme. Since the external IDs are stored as fields in the
account index the corresponding accounts must be reindexed.

LocalUsernamesToLowerCase as a site program doesn't have the account
index available and hence can't do the reindexing itself (at least not
without blowing up the Guice injector stack). Instead invoke the reindex
program to reindex the accounts. This is the same approach that was
taken for the MigrateToNoteDb program which was added in master. This
will reindex all accounts and also means that the
LocalUsernamesToLowerCase program cannot run in parallel to the Gerrit
server. This should be okay since running LocalUsernamesToLowerCase is a
one time effort when you want to configure case-insensitive login for
Gerrit.

Change-Id: I6f2804ece996b22ec834aaebf209dac3b5b89415
Signed-off-by: Edwin Kempin <ekempin@google.com>
2017-07-04 23:23:09 +00:00
..