Skip to content

Commit

Permalink
assert engine
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzl25 committed Nov 30, 2021
1 parent 6df54eb commit dc07b38
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ case class SparkSQLEngine(
// Start engine self-terminating checker after all services are ready and it can be reached by
// all servers in engine spaces.
backendService.sessionManager.startTerminatingChecker(() => {
currentEngine match {
case Some(engine) =>
engine.stop()
}
assert(currentEngine.isDefined)
currentEngine.get.stop()
})
}

Expand Down

0 comments on commit dc07b38

Please sign in to comment.