You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "swuferhong (via GitHub)" <gi...@apache.org> on 2025/11/26 06:42:18 UTC
[I] If the server's shutdown hook does not complete within 10 seconds, the service will be forced to kill [fluss]
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: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] If the server's shutdown hook does not complete within 10 seconds, the service will be forced to kill [fluss]
Posted by "wuchong (via GitHub)" <gi...@apache.org>.
wuchong closed issue #2025: If the server's shutdown hook does not complete within 10 seconds, the service will be forced to kill
URL: https://github.com/apache/fluss/issues/2025
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org