diff --git a/server/src/main/java/org/eclipse/jifa/server/service/impl/StorageServiceImpl.java b/server/src/main/java/org/eclipse/jifa/server/service/impl/StorageServiceImpl.java index 628308ac..7ded9f20 100644 --- a/server/src/main/java/org/eclipse/jifa/server/service/impl/StorageServiceImpl.java +++ b/server/src/main/java/org/eclipse/jifa/server/service/impl/StorageServiceImpl.java @@ -88,6 +88,8 @@ public StorageServiceImpl(CipherService cipherService) { @PostConstruct private void init() { if (isElasticWorker()) { + basePath = config.getStoragePath(); + Validate.isTrue(Files.isDirectory(basePath)); available = true; return; } @@ -96,7 +98,6 @@ private void init() { if (config.getStoragePath() == null) { return; } - // TODO: check k8s environment }