Skip to content

[SERVER] Close sessions for terminated engine applications - #7755

Open
moelhoussein wants to merge 1 commit into
apache:masterfrom
moelhoussein:fix-engine-termination-diagnostics
Open

moelhoussein wants to merge 1 commit into
apache:masterfrom
moelhoussein:fix-engine-termination-diagnostics

Conversation

@moelhoussein

Copy link
Copy Markdown
Contributor

Why are the changes needed?

When an engine application terminates, operations can fail with a generic transport error even though Kyuubi already knows the application has stopped.

This patch reports the application details, interrupts pending RPCs, and closes the session when the application state is FAILED, KILLED, or FINISHED. Ambiguous states such as NOT_FOUND keep the existing transport-error behavior.

How was this patch tested?

build/mvn test -pl kyuubi-server -am -Dtest=none \
  -DwildcardSuites=org.apache.kyuubi.operation.KyuubiOperationSuite

build/mvn test -pl kyuubi-server -am -Dtest=none \
  -DwildcardSuites=org.apache.kyuubi.operation.KyuubiOperationPerConnectionSuite

Both suites passed: 2/2 and 15/15 tests.

Also ran dev/reformat and git diff --check.

Was this patch assisted by generative AI tooling?

Assisted-by: Cursor with GPT-5.6 Sol

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