wangzhigang1999 opened a new issue, #7830:
URL: https://github.com/apache/kyuubi/issues/7830
### Describe the bug
A Spark batch submitted with `spark.master=local[1]` or `local[*]` can stay
`PENDING` after Spark has printed its result and exited successfully. The batch
has no application ID. Kyuubi keeps polling for one, tying up a batch
submission thread. The same request with `spark.master=local` reaches
`FINISHED`.
### Steps to reproduce
1. Start Kyuubi with a local Spark installation and `jps` available to the
server.
2. Submit `org.apache.spark.examples.SparkPi` from the Spark examples JAR
via `POST /api/v1/batches`, with batch type `SPARK` and `spark.master=local[1]`.
3. After Spark prints the Pi estimate and exits, poll `GET
/api/v1/batches/{batchId}`. The expected state is `FINISHED`.
### Affects Version(s)
Reproduced with Kyuubi 1.12.0 and Spark 3.5.8. The same exact match on
`local` exists on master at `ab07bdf63`.
### Additional context
`JpsApplicationOperation.isSupported` only accepts an unset resource manager
or the literal `local`. With a bracketed local master, no built-in application
operation handles the batch, so polling returns no application information.
This also prevents Kyuubi from locating a running batch by tag for
cancellation. The short-batch fix in #7816 handles jobs that exit before JPS
observes them once the JPS operation has been selected.
--
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]