pan3793 commented on code in PR #7816:
URL: https://github.com/apache/kyuubi/pull/7816#discussion_r4421174311


##########
kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/BatchesResourceSuite.scala:
##########
@@ -541,6 +541,29 @@ abstract class BatchesResourceSuiteBase extends 
KyuubiFunSuite
     }
   }
 
+  test("local batch finished before the application is detected") {
+    // a long check interval lets the process exit before the app is ever 
polled
+    val requestObj = newSparkBatchRequest(Map(
+      "spark.master" -> "local",
+      BATCH_APPLICATION_CHECK_INTERVAL.key -> "PT1M"))

Review Comment:
   Valid. Fixed in 8d9cd5533: the test now hides both the launcher and 
spark-submit JVMs from jps via `-XX:-UsePerfData` 
(`kyuubi.engineEnv.SPARK_LAUNCHER_OPTS` / `SPARK_SUBMIT_OPTS`), so the lookup 
returns `NOT_FOUND` through process exit, and asserts `appId` is null and 
`appStartTime` is 0 before asserting `FINISHED`. Fails 3/3 with the fix 
reverted.



-- 
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]

Reply via email to