[KYUUBI #4462] Fix variable usage issue in SessionManager#stop

### _Why are the changes needed?_

Fix variable usage issue in `SessionManager#stop`

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4462 from Yikf/sessionmanager.

Closes #4462

d4340d4ec [Yikf] fix variable usage issue

Authored-by: Yikf <yikaifei@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
Yikf 2023-03-07 13:58:43 +08:00 committed by Cheng Pan
parent a4a16ebda2
commit 8af07fa47d
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D

View File

@ -288,9 +288,9 @@ abstract class SessionManager(name: String) extends CompositeService(name) {
shutdown = true
val shutdownTimeout: Long =
if (isServer) {
conf.get(ENGINE_EXEC_POOL_SHUTDOWN_TIMEOUT)
} else {
conf.get(SERVER_EXEC_POOL_SHUTDOWN_TIMEOUT)
} else {
conf.get(ENGINE_EXEC_POOL_SHUTDOWN_TIMEOUT)
}
ThreadUtils.shutdown(timeoutChecker, Duration(shutdownTimeout, TimeUnit.MILLISECONDS))