From bb456a63ba7c4692c3ff07aae3a4669dd6fc3845 Mon Sep 17 00:00:00 2001 From: sychen Date: Tue, 28 Nov 2023 22:09:48 +0800 Subject: [PATCH] Fix flaky test - JpsApplicationOperation with spark local mode --- .../org/apache/kyuubi/engine/JpsApplicationOperationSuite.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kyuubi-server/src/test/scala/org/apache/kyuubi/engine/JpsApplicationOperationSuite.scala b/kyuubi-server/src/test/scala/org/apache/kyuubi/engine/JpsApplicationOperationSuite.scala index a0914afcf0d..bdb0fa787fb 100644 --- a/kyuubi-server/src/test/scala/org/apache/kyuubi/engine/JpsApplicationOperationSuite.scala +++ b/kyuubi-server/src/test/scala/org/apache/kyuubi/engine/JpsApplicationOperationSuite.scala @@ -83,6 +83,8 @@ class JpsApplicationOperationSuite extends KyuubiFunSuite { val desc1 = jps.getApplicationInfoByTag(ApplicationManagerInfo(None), id) assert(desc1.id != null) assert(desc1.name != null) + assert(!desc1.name.contains("org.apache.spark.launcher.Main")) + assert(desc1.name.contains("org.apache.spark.deploy.SparkSubmit")) assert(desc1.state == ApplicationState.RUNNING) val response = jps.killApplicationByTag(ApplicationManagerInfo(None), id) assert(response._1, response._2)