Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13433 RPM distribution improvements and known issues
  3. CASSANDRA-13436

Stopping Cassandra shows status "failed" due to non-zero exit status

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Packaging
    • None

    Description

      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:

      [Service]
      ...
      SuccessExitStatus=0 143
      ...
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              spod Stefan Podkowinski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: