Skip to content

[ZEPPELIN-6461] Fix InterruptedException handling in recoverRunningParagraphs - #5393

Open
yxinot wants to merge 1 commit into
apache:masterfrom
yxinot:ZEPPELIN-6461-fix-interrupted-exception-handling
Open

[ZEPPELIN-6461] Fix InterruptedException handling in recoverRunningParagraphs#5393
yxinot wants to merge 1 commit into
apache:masterfrom
yxinot:ZEPPELIN-6461-fix-interrupted-exception-handling

Conversation

@yxinot

@yxinot yxinot commented Aug 8, 2026

Copy link
Copy Markdown

What is this PR for?

In Notebook.recoverRunningParagraphs(), the InterruptedException caught from thread.join() was handled with e.printStackTrace(), which bypasses the project's Log4j2 configuration. Additionally, the thread interrupt status was not restored, preventing callers from observing the interruption. This PR replaces e.printStackTrace() with SLF4J logging and adds Thread.currentThread().interrupt() to restore the interrupt status.

What type of PR is it?

Bug Fix

Todos

  • Replace e.printStackTrace() with LOGGER.warn() (SLF4J)
  • Restore thread interrupt status with Thread.currentThread().interrupt()

What is the Jira issue?

How should this be tested?

./mvnw test -pl zeppelin-server -Dtest=NotebookTest -DfailIfNoTests=false

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

…ragraphs

Replace e.printStackTrace() with SLF4J logging and restore thread
interrupt status in Notebook.recoverRunningParagraphs().
@hyunw9

hyunw9 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

LGTM 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants