By setting noteDb.groups.disableReviewDb access to the group tables in
ReviewDb can be completely disabled. Any call to group tables in
ReviewDb is a No-Op. If Gerrit is working with this option the group
tables can go away without breaking Gerrit.
To test this GroupNoteDbMode can be set to 'ON' (via env var
'GERRIT_NOTEDB_GROUPS' or system property 'gerrit.notedb.groups'). With
this configuration all tests are executed with disabled group tables,
e.g.:
bazel test //... --test_env=GERRIT_NOTEDB_GROUPS=ON
This is useful for making sure nothing breaks during the groups to
NoteDb migration.
For GroupsIT a new config suite with noteDb.groups.disableReviewDb =
true is added so that at least the group tests are always executed with
this configuration.
Change-Id: I419cad421228d6a98fa56aec7b4ef09d3a72e2d8
Signed-off-by: Edwin Kempin <ekempin@google.com>