swuferhong opened a new issue, #2025: URL: https://github.com/apache/fluss/issues/2025
### Search before asking - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar. ### Fluss version 0.8.0 (latest release) ### Please describe the bug 🐞 If the server's shutdown hook does not complete within 10 seconds, the service will be forced to kill. The reason is that the `fluss-daemon.sh` set a 10-second timeout before forcibly killing the entire service: ``` function guaranteed_kill { to_stop_pid=$1 daemon=$2 # send sigterm for graceful shutdown kill $to_stop_pid # if timeout exists, use it if command -v timeout &> /dev/null ; then # wait 10 seconds for process to stop. By default, Fluss kills the JVM 5 seconds after sigterm. timeout 10 tail --pid=$to_stop_pid -f /dev/null &> /dev/null if [ "$?" -eq 124 ]; then echo "Daemon $daemon didn't stop within 10 seconds. Killing it." # send sigkill kill -9 $to_stop_pid fi fi } ``` ### Solution _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
