apache / apache/kyuubi

[Bug] BatchJobSubmission repeatedly closed

Open
#5,863 0 comments 0 reactions 0 assignees View on GitHub
kind:bug priority:major
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

In the **close** method of **KyuubiBatchSessionImpl**, **BatchJobSubmission** is closed repeatedly。
causing **OperationLog** to report an error.

![image](https://github.com/apache/kyuubi/assets/30170267/07825b15-1909-4cd3-b82a-5cfc1bf73c22)

![image](https://github.com/apache/kyuubi/assets/30170267/8437737c-ce44-43c3-a367-9664d7ef3837)

### Affects Version(s)

master

### Kyuubi Server Log Output

_No response_

### Kyuubi Engine Log Output

_No response_

### Kyuubi Server Configurations

_No response_

### Kyuubi Engine Configurations

_No response_

### Additional context

_No response_

### Are you willing to submit PR?

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

Open the contributing guide

Research direction

Start in the close method of KyuubiBatchSessionImpl and trace where BatchJobSubmission is closed repeatedly. Check how that repeated close reaches OperationLog, then verify that the submission is closed only as intended and the OperationLog error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.