Skip to content

[KYUUBI #7823][SERVER] Manage REST handlers with the Jetty server lifecycle - #7824

Open
HanShuhang wants to merge 1 commit into
apache:masterfrom
HanShuhang:hsh/fix-thread-leak
Open

HanShuhang wants to merge 1 commit into
apache:masterfrom
HanShuhang:hsh/fix-thread-leak

Conversation

@HanShuhang

@HanShuhang HanShuhang commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Why are the changes needed?

Closes #7823.
This patch restores lifecycle propagation at both levels by:

  • marking dynamically added handlers as managed by the root handler collection;
  • registering the authentication wrapper's child through setHandler

How was this patch tested?

  build/mvn test -B \
    -pl kyuubi-server \
    -am \
    -Pspark-provided,hive-provided,flink-provided \
    -Dtest=none \
    -DwildcardSuites=org.apache.kyuubi.server.http.authentication.KyuubiHttpAuthenticationFactorySuite

Was this patch assisted by generative AI tooling?

Assisted-by: TRAE with GPT-6

This branch has not been deployed

No deployments
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.

[Bug] Kyuubi server may not exit after shutdown due to unmanaged Jetty handlers

1 participant