Also check we can touch the filesystem in healthcheck

This commit is contained in:
Shane Kilkelly 2020-06-18 14:56:50 +01:00
parent 973a18b1b8
commit 40a171d44a

View file

@ -266,6 +266,10 @@ public class Bridge {
public boolean healthCheck() {
try {
dbStore.getNumProjects();
File rootDirectory = new File("/");
if (!rootDirectory.exists()) {
throw new Exception("bad filesystem state, root directory does not exist");
}
Log.error("[HealthCheck] passed");
return true;
} catch (Exception e) {