Skip to content

Commit

Permalink
Fixed session close operator log session dir not deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
BDC-fengyuanshen committed Mar 25, 2022
1 parent 2dad761 commit 7f261a3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class OperationLogSuite extends KyuubiFunSuite {
"passwd",
"localhost",
Map.empty)

val session = sessionManager.getSession(sHandle)
val oHandle = OperationHandle(
OperationType.EXECUTE_STATEMENT,
Expand Down Expand Up @@ -80,8 +79,7 @@ class OperationLogSuite extends KyuubiFunSuite {

operationLog.close()
assert(!Files.exists(logFile))



assert(Files.exists(Paths.get(operationLogRoot, sHandle.identifier.toString)))
sessionManager.closeSession(sHandle)
assert(!Files.exists(Paths.get(operationLogRoot, sHandle.identifier.toString)))
Expand Down

0 comments on commit 7f261a3

Please sign in to comment.