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