From 90253b609f197cd34e8e983194c74ab6b2c90ce9 Mon Sep 17 00:00:00 2001 From: Denghui Dong Date: Wed, 20 Mar 2024 17:56:35 +0800 Subject: [PATCH] fix: should set StorageServiceImpl#basePath to true for elastic worker --- .../eclipse/jifa/server/service/impl/StorageServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }