Class GroupsNoteDbConsistencyChecker
java.lang.Object
com.google.gerrit.server.group.db.GroupsNoteDbConsistencyChecker
Check the referential integrity of NoteDb group storage.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The result of a consistency check. -
Method Summary
Modifier and TypeMethodDescriptioncheck
(org.eclipse.jgit.lib.Repository allUsersRepo) Checks for problems with the given All-Users repo.static void
ensureConsistentWithGroupNameNotes
(org.eclipse.jgit.lib.Repository allUsersRepo, InternalGroup group) static void
static void
logConsistencyProblemAsWarning
(String fmt, Object... args) static void
-
Method Details
-
check
public GroupsNoteDbConsistencyChecker.Result check(org.eclipse.jgit.lib.Repository allUsersRepo) throws IOException Checks for problems with the given All-Users repo.- Throws:
IOException
-
ensureConsistentWithGroupNameNotes
public static void ensureConsistentWithGroupNameNotes(org.eclipse.jgit.lib.Repository allUsersRepo, InternalGroup group) throws IOException - Throws:
IOException
-
logConsistencyProblemAsWarning
-
logConsistencyProblem
-
logFailToLoadFromGroupRefAsWarning
-