[Bug] [K8S]Executer pod cannot be terminated, when using the configuration kyuubi.Engine.Share.Level=CONNECTION
- Dominant language
- Scala
- Stars
- 2.4k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before asking
- [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues.
### Describe the bug
Executer pod can terminated when using the configuration kyuubi.Engine.Share.Level=USER.
But executer pod cannot be terminated, when using the configuration kyuubi.Engine.Share.Level=CONNECTION,the final status of pod is either Completed or NotReady
### Affects Version(s)
1.6.0
### Kyuubi Server Log Output
```logtalk
No exceptions log
```
### Kyuubi Engine Log Output
```logtalk
23/01/20 01:56:08 INFO Executor: Finished task 0.0 in stage 1.0 (TID 1). 1221 bytes result sent to driver
23/01/20 01:56:09 ERROR CoarseGrainedExecutorBackend: Executor self-exiting due to : Driver hadoop-qa-002:37473 disassociated! Shutting down.
23/01/20 01:56:09 INFO CoarseGrainedExecutorBackend: Driver from hadoop-qa-002:37473 disconnected during shutdown
23/01/20 01:56:09 INFO MemoryStore: MemoryStore cleared
23/01/20 01:56:09 INFO BlockManager: BlockManager stopped
23/01/20 01:56:09 INFO ShutdownHookManager: Shutdown hook called
23/01/20 01:56:09 INFO ShutdownHookManager: Deleting directory /var/data/spark-d5a8714b-37a9-49b7-9650-e8f080089947/spark-dfd6e7ba-d6ce-4cf5-b7fd-8d5929f837c3
```
### Kyuubi Server Configurations
```yaml
kyuubi.Engine.Share.Level=CONNECTION
kyuubi.operation.incremental.collect=true
kyuubi.authentication=NONE
```
### Kyuubi Engine Configurations
```yaml
spark.dynamicAllocation.enabled=false
```
### Additional context
kubernetes version is 1.15 and 1.21
spark version is 3.3.0
Kyuubi Server are deployed on physical machines
### Are you willing to submit PR?
- [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
- [ ] No. I cannot submit a PR at this time.
Contributor guide
Assessment
This issue has not been assessed yet.