Copilot commented on code in PR #7816:
URL: https://github.com/apache/kyuubi/pull/7816#discussion_r4420300343
##########
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:
The one-minute interval only delays subsequent polls:
`submitAndMonitorBatchJob` performs an application lookup immediately after
`builder.start`, before its first timed wait. If that lookup detects the JVM,
`appStarted` becomes true and this test can pass with the fix reverted. Control
the lookup so it returns `NOT_FOUND` through process completion, and assert
that `appStarted` stayed false to ensure the test exercises the new branch.
--
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]