You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2022/03/25 10:37:11 UTC

[zeppelin] branch master updated: [ZEPPELIN-5624] Check if the path directory is compliant. (#4282)

This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/master by this push:
     new 15cbe32  [ZEPPELIN-5624] Check if the path directory is compliant. (#4282)
15cbe32 is described below

commit 15cbe3260090738d26283a28512e61075b2ac6f0
Author: iiusky <sk...@03sec.com>
AuthorDate: Fri Mar 25 18:36:59 2022 +0800

    [ZEPPELIN-5624] Check if the path directory is compliant. (#4282)
    
    * [ZEPPELIN-5624] Check if the path directory is compliant.
---
 .../org/apache/zeppelin/interpreter/InterpreterSettingManager.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterSettingManager.java b/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterSettingManager.java
index 6d30006..cfdae70 100644
--- a/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterSettingManager.java
+++ b/zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterSettingManager.java
@@ -1035,12 +1035,11 @@ public class InterpreterSettingManager implements NoteEventListener, ClusterEven
         // Cluster event accepting nodes do not need to save files repeatedly
         saveToFile();
       }
+      File localRepoPath = new File(conf.getInterpreterLocalRepoPath());
+      FileUtils.deleteDirectory(new File(localRepoPath, id));
       removed = true;
     }
 
-    File localRepoDir = new File(conf.getInterpreterLocalRepoPath() + "/" + id);
-    FileUtils.deleteDirectory(localRepoDir);
-
     return removed;
   }