Skip to content

[hotfix][dist] Disable Log4j shutdown hook in foreground mode#3634

Merged
swuferhong merged 1 commit into
apache:mainfrom
swuferhong:shutdown-hook-hotfix-1
Jul 10, 2026
Merged

[hotfix][dist] Disable Log4j shutdown hook in foreground mode#3634
swuferhong merged 1 commit into
apache:mainfrom
swuferhong:shutdown-hook-hotfix-1

Conversation

@swuferhong

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #xxx

#2020 disabled Log4j's shutdown hook for daemon mode so Fluss shutdown-hook logs can still be emitted during process shutdown. However, Kubernetes and Docker deployments use start-foreground, which goes through fluss-console.sh instead of fluss-daemon.sh.

As a result, foreground TabletServer/Coordinator processes could still let Log4j close appenders before the Fluss shutdown hook runs, causing shutdown logs such as "Shutting down KvManager" to be lost.

Apply the same Log4j shutdown-hook setting to fluss-console.sh and add a dist script test to cover both foreground and daemon startup paths.

Brief change log

Tests

API and Format

Documentation

@swuferhong swuferhong merged commit 02cc35f into apache:main Jul 10, 2026
17 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.

2 participants