cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Repik (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-13436) Stopping Cassandra shows status "failed" due to non-zero exit status
Date Wed, 19 Jul 2017 12:07:02 GMT


Tomas Repik commented on CASSANDRA-13436:

In fedora we are using the following procedure. Basically doing the same, with the {{nc}}

  host=$(head -1 /etc/hosts | cut -d' ' -f1)
  port=$(cat $CASSANDRA_CONF/cassandra.yaml | grep native_transport_port | head -1 | cut -d'
' -f2)
  if ! nc -z $host $port; then
    # echo "Waiting for Cassandra to start..."
    while ! nc -z $host $port; do
       sleep 1
    # echo "Cassandra is ready."

> Stopping Cassandra shows status "failed" due to non-zero exit status
> --------------------------------------------------------------------
>                 Key: CASSANDRA-13436
>                 URL:
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: Packaging
>            Reporter: Stefan Podkowinski
> Systemd will monitor the process from the pid file and save the return status once if
has been stopped. In case the process terminates with a status other than zero, it will assume
the process terminated abnormaly. Stopping Cassandra using the cassandra script will send
a kill signal to the JVM causing it to terminate. If this happen, the JVM will exit with status
143, no matter if shutdown hooks have been executed or not. In order to make systemd recognize
this as a normal exit code, the following should be added to the yet to be created unit file:
> {noformat}
> [Service]
> ...
> SuccessExitStatus=0 143
> ...
> {noformat}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message