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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user