gerrit/gerrit-server/src/main/java/com/google/gerrit
Dave Borowitz 8f1dc546c1 GC All-Users after migrating to NoteDb
The NoteDb migration writes many loose objects to All-Users, since this
is the simplest way to write data to All-Users with high parallelism.
However, this results in poor performance of the All-Users repo
immediately after migration, for example taking tens of seconds to load
each account on GerritForge's server.

Work around this by running GC immediately after the migration process,
both offline and online. This is not perfect, because it is not
represented by a NotesMigrationState enum value, meaning the GC will not
be resumed if the server is uncleanly shut down during the process. (As
with all GCs, this should not result in repo corruption.)

Change-Id: Iffc89e1c125ef5db57298daccabd7e1fe4af8d27
2018-03-19 09:33:21 -04:00
..
audit Ensure constants are declared as immutable collections 2017-03-08 10:33:02 -05:00
common Hide RefControl#isVisible and migrate callers to PermissionBackend 2017-08-18 14:22:13 +02:00
lifecycle Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
metrics Remove 'final' from method signatures across gerrit. 2017-06-14 09:18:42 +02:00
rules Provide ProjectState instead of ChangeControl to Prolog Engine 2017-09-14 16:49:34 +02:00
server GC All-Users after migrating to NoteDb 2018-03-19 09:33:21 -04:00