Skip to content

Commit 0c2592d

Browse files
fix: drop non empty offline path (#3654)
1 parent c081f28 commit 0c2592d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/openmldb-taskmanager/src/main/scala/com/_4paradigm/openmldb/taskmanager/JobInfoManager.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ object JobInfoManager {
203203
val offlineTableInfo = tableInfo.getOfflineTableInfo
204204

205205
val filePath = offlineTableInfo.getPath
206-
if(offlineTableInfo.getDeepCopy) {
207-
206+
if(filePath.nonEmpty) {
208207
if (filePath.startsWith("file://")) {
209208
val dir = new File(filePath.substring(7))
210209
logger.info(s"Try to delete the path ${filePath.substring(7)}")
@@ -217,7 +216,7 @@ object JobInfoManager {
217216
throw new Exception(s"Get unsupported file path: $filePath")
218217
}
219218
} else {
220-
logger.info(s"Do not delete file $filePath for non deep copy data")
219+
logger.info(s"Do not delete for empty hard path")
221220
}
222221
}
223222

0 commit comments

Comments
 (0)