Skip to content

Commit d97a4d7

Browse files
committed
fix#158 do not delete session resouces dir in close session (apache#159)
1 parent f3b3f20 commit d97a4d7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

kyuubi-server/src/main/scala/yaooqinn/kyuubi/session/KyuubiSession.scala

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,6 @@ private[kyuubi] class KyuubiSession(
137137
}
138138
}
139139

140-
private def cleanupSessionResourcesDir(): Unit = {
141-
try {
142-
FileUtils.forceDelete(sessionResourcesDir)
143-
} catch {
144-
case e: Exception =>
145-
error("Failed to cleanup session log dir: " + sessionResourcesDir, e)
146-
}
147-
}
148-
149140
def sparkSession: SparkSession = this.sparkSessionWithUGI.sparkSession
150141

151142
def ugi: UserGroupInformation = this.sessionUGI
@@ -205,8 +196,6 @@ private[kyuubi] class KyuubiSession(
205196
// Iterate through the opHandles and close their operations
206197
opHandleSet.foreach(closeOperation)
207198
opHandleSet.clear()
208-
// Cleanup session resources directory
209-
cleanupSessionResourcesDir()
210199
// Cleanup session log directory.
211200
cleanupSessionLogDir()
212201
} finally {

0 commit comments

Comments
 (0)