Skip to content

Try Catch logic for openBatchSession#7426

Open
oh0873 wants to merge 1 commit intoapache:masterfrom
oh0873:hoonoh/openBatchSessionExceptionCatchv2
Open

Try Catch logic for openBatchSession#7426
oh0873 wants to merge 1 commit intoapache:masterfrom
oh0873:hoonoh/openBatchSessionExceptionCatchv2

Conversation

@oh0873
Copy link
Copy Markdown
Contributor

@oh0873 oh0873 commented Apr 28, 2026

Why are the changes needed?

In Kyuubi Batch v2 version, Batch Service creates batchExecutor to submit a batch job. However, when openBatchSession fails, the executor dies and never recovers.

This results in a jobs stuck at PENDING state and no executor to submit any jobs at INITIALIZED state.

This PR added error handling logic to handle openBatchSession.

This also fixes withUpdateCount call changes fromState to targetState.

How was this patch tested?

Tested in our environment, openBatchSession exceptions like connections per user or DB connection error no longer leaves jobs stuck at PENDING state. Instead all those jobs are labeled as ERROR.

Was this patch authored or co-authored using generative AI tooling?

Test case and bug finding were assisted with Cursor agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant