[KYUUBI #2696] [TEST] Stop NoopServer should not throw exception

### _Why are the changes needed?_

Stop NoopServer should not throw exception

### _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.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #2696 from pan3793/noop.

Closes #2696

02c98503 [Cheng Pan] [TEST] Stop NoopServer should not throw exception

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
Cheng Pan 2022-05-18 22:22:13 +08:00
parent 18e9d09e66
commit 5585dd01bb
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D

View File

@ -17,8 +17,6 @@
package org.apache.kyuubi.service
import org.apache.kyuubi.KyuubiException
abstract class AbstractNoopServer(name: String) extends Serverable(name) {
override val backendService = new NoopBackendService
@ -33,6 +31,6 @@ abstract class AbstractNoopServer(name: String) extends Serverable(name) {
}
override protected def stopServer(): Unit = {
throw new KyuubiException("no need to stop me")
logger.info(s"$name stopped.")
}
}