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
        Ismael Juma added a comment -

        linwukang, please file a new issue.

        Show
        Ismael Juma added a comment - linwukang , please file a new issue.
        Hide
        linwukang added a comment - - edited

        It seem that, this script cannot work in CentOS 6.4.
        Command "ps ax | grep -i 'kafka\.Kafka'" return NOTHING so that kafka will not be killed.
        -----------------------------------------------------------------------------------------------
        [root@node63 bin]# lsb_release -a
        LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
        Distributor ID: CentOS
        Description: CentOS release 6.4 (Final)
        Release: 6.4
        Codename: Final
        [root@node63 bin]# jps
        8194 HRegionServer
        3250 JournalNode
        3612 NameNode
        1915 QuorumPeerMain
        10833 Master
        6573 HMaster
        4132 DFSZKFailoverController
        13891 Worker
        18524 Kafka
        8073 ZooKeeperMain
        4282 DataNode
        4790 ResourceManager
        4911 NodeManager
        18903 Jps
        [root@node63 bin]# ps ax | grep -i 'kafka\.Kafka'
        [root@node63 bin]#

        Show
        linwukang added a comment - - edited It seem that, this script cannot work in CentOS 6.4. Command "ps ax | grep -i 'kafka\.Kafka'" return NOTHING so that kafka will not be killed. ----------------------------------------------------------------------------------------------- [root@node63 bin] # lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.4 (Final) Release: 6.4 Codename: Final [root@node63 bin] # jps 8194 HRegionServer 3250 JournalNode 3612 NameNode 1915 QuorumPeerMain 10833 Master 6573 HMaster 4132 DFSZKFailoverController 13891 Worker 18524 Kafka 8073 ZooKeeperMain 4282 DataNode 4790 ResourceManager 4911 NodeManager 18903 Jps [root@node63 bin] # ps ax | grep -i 'kafka\.Kafka' [root@node63 bin] #
        Hide
        Neha Narkhede added a comment -

        Committed to trunk

        Show
        Neha Narkhede added a comment - Committed to 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
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development