Skip to content

NGSOK-1876 Fix spark-daemon.sh not forwarding SIGTERM in foreground mode#52

Merged
giggsoff merged 1 commit into
develop/4.3.0/3.5.4.4from
hotfix/3/NGSOK-1876
Jul 10, 2026
Merged

NGSOK-1876 Fix spark-daemon.sh not forwarding SIGTERM in foreground mode#52
giggsoff merged 1 commit into
develop/4.3.0/3.5.4.4from
hotfix/3/NGSOK-1876

Conversation

@giggsoff

@giggsoff giggsoff commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Use exec when running the daemon command in the SPARK_NO_DAEMONIZE (foreground) branch of execute_command(), so the JVM replaces the wrapper shell instead of running as its child. Without this, the wrapper shell remains PID 1 in containers, the kernel suppresses its default SIGTERM disposition since it is PID 1 with no trap, and the JVM's shutdown hooks never run until SIGKILL after the grace period.

Use exec when running the daemon command in the SPARK_NO_DAEMONIZE
(foreground) branch of execute_command(), so the JVM replaces the
wrapper shell instead of running as its child. Without this, the
wrapper shell remains PID 1 in containers, the kernel suppresses its
default SIGTERM disposition since it is PID 1 with no trap, and the
JVM's shutdown hooks never run until SIGKILL after the grace period.
@giggsoff giggsoff self-assigned this Jul 8, 2026
@giggsoff giggsoff requested review from Asmoday and werzerbb July 9, 2026 10:47
@giggsoff giggsoff merged commit cee9d9c into develop/4.3.0/3.5.4.4 Jul 10, 2026
19 checks passed
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.

1 participant