Skip to content

[server] Register signal handlers to log termination due to SIGTERM, SIGHUP and SIGINT#2012

Merged
swuferhong merged 1 commit into
apache:mainfrom
LiebingYu:signal-logging
Nov 25, 2025
Merged

[server] Register signal handlers to log termination due to SIGTERM, SIGHUP and SIGINT#2012
swuferhong merged 1 commit into
apache:mainfrom
LiebingYu:signal-logging

Conversation

@LiebingYu
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #2005

Brief change log

Tests

API and Format

Documentation

@LiebingYu
Copy link
Copy Markdown
Contributor Author

After introducing this log, we will be able to quickly identify the reason for the shutdown.

2025-11-24 21:08:41,013 WARN  org.apache.fluss.server.ServerBase                           [] - RECEIVED SIGNAL 15: SIGTERM. Shutting down as requested.
2025-11-24 21:08:41,027 INFO  org.apache.fluss.server.tablet.TabletServer                  [] - Shutting down Tablet server (JVM_SHUTDOWN).
2025-11-24 21:08:41,027 INFO  org.apache.fluss.server.tablet.TabletServer                  [] - Starting controlled shutdown.

CC @swuferhong. Could you help review this?

@LiebingYu LiebingYu force-pushed the signal-logging branch 2 times, most recently from f9f82e1 to 7356c04 Compare November 24, 2025 13:32
Copy link
Copy Markdown
Contributor

@swuferhong swuferhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@swuferhong swuferhong merged commit babf91b into apache:main Nov 25, 2025
5 checks passed
Ugbot pushed a commit to Ugbot/fluss that referenced this pull request Apr 26, 2026
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.

Register signal handler to log termination due to SIGTERM, SIGHUP and SIGINT (control-c)

2 participants