Nick-0723 commented on code in PR #2314:
URL: https://github.com/apache/incubator-kyuubi/pull/2314#discussion_r847360328
##########
kyuubi-server/src/test/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilderSuite.scala:
##########
@@ -240,21 +240,22 @@ class SparkProcessBuilderSuite extends
KerberizedTestHelper with MockitoSugar {
}
test("kill application") {
+ val engineRefId = "cf51ba6d-b019-4f8a-a2a2-4e479aa95112"
val pb1 = new FakeSparkProcessBuilder(conf) {
override protected def env: Map[String, String] = Map()
override def getYarnClient: YarnClient = mock[YarnClient]
}
- val exit1 = pb1.killApplication("21/09/30 17:12:47 INFO yarn.Client: " +
- "Application report for application_1593587619692_20149 (state:
ACCEPTED)")
- assert(exit1.contains("Killed Application application_1593587619692_20149
successfully."))
+ pb1.conf.set("spark.master", "yarn")
+ val exit1 = pb1.killApplication(engineRefId)
+ assert(exit1.equals(s"There are no Application tagged with $engineRefId"))
Review Comment:
> FYI: org.apache.kyuubi.server.MiniYarnService
thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]