Kafka
  1. Kafka
  2. KAFKA-1189

kafka-server-stop.sh doesn't stop broker

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.2.0
    • Component/s: tools
    • Labels:
    • Environment:
      RHEL 6.4 64bit, Java 6u35

      Description

      Just before the 0.8.0 release this commit[1] changed the signal in the kafka-server-stop.sh script from SIGTERM to SIGINT. This doesn't seem to stop the broker. Changing this back to SIGTERM (or -15) fixes the issues.

      [1] - https://github.com/apache/kafka/commit/51de7c55d2b3107b79953f401fc8c9530bd0eea0

      1. KAFKA-1189.patch
        0.5 kB
        Martin Kleppmann

        Activity

        Hide
        Martin Kleppmann added a comment -

        Created reviewboard https://reviews.apache.org/r/18846/
        against branch trunk

        Show
        Martin Kleppmann added a comment - Created reviewboard https://reviews.apache.org/r/18846/ against branch trunk
        Hide
        Martin Kleppmann added a comment -

        This happens if the broker is started with ./bin/kafka-server-start.sh -daemon config/server.properties — it seems that nohup swallows the SIGINT signal. Changing the shutdown script to SIGTERM fixes the problem.

        Show
        Martin Kleppmann added a comment - This happens if the broker is started with ./bin/kafka-server-start.sh -daemon config/server.properties — it seems that nohup swallows the SIGINT signal. Changing the shutdown script to SIGTERM fixes the problem.
        Hide
        Neha Narkhede added a comment -

        Committed to trunk

        Show
        Neha Narkhede added a comment - Committed to trunk

          People

          • Assignee:
            Martin Kleppmann
            Reporter:
            Bryan Baugher
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development