Skip to content

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

@LiebingYu

Description

@LiebingYu

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

During the upgrade of the Fluss cluster, we found that the TabletServer was repeatedly performing controlled shutdowns without any error logs. After investigation, we discovered that the actual reason was that the TabletServer was being killed due to failed Kubernetes health checks. If we add some logs related to termination, it will help us to locate such issues more easily.
Image

Kafka already supports similar logs: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/utils/LoggingSignalHandler.java

Solution

No response

Anything else?

No response

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions