Report the index state after re-indexing

If indexing goes wrong, the failure is typically logged. But we do
not explicitly say when re-indexing gave a ready index. One has
to resort to double-checking `index/gerrit_index.config` the index
state after every re-index. So, we now explicitly report the index
state after re-indexing.

Change-Id: Idbf8c728a33e2753ee7528dc76f6095f407d3a05
This commit is contained in:
Christian Aistleitner
2020-06-14 10:48:22 +02:00
parent 58bb4881de
commit 8db58c8fc2

View File

@@ -208,6 +208,9 @@ public class Reindex extends SiteProgram {
if (result.success()) {
index.markReady(true);
}
System.out.format(
"Index %s in version %d is %sready\n",
def.getName(), index.getSchema().getVersion(), result.success() ? "" : "NOT ");
return result.success();
}
}