Skip to content

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

Merged
voidmatcha merged 1 commit into
apache:masterfrom
yxinot:ZEPPELIN-6461-fix-interrupted-exception-handling
Aug 9, 2026
Merged

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

Conversation

@yxinot

@yxinot yxinot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

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 👍

@voidmatcha
voidmatcha merged commit 8595f2a into apache:master Aug 9, 2026
17 of 18 checks passed
@voidmatcha

Copy link
Copy Markdown
Member

Merged into master (8595f2a).

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.

4 participants