Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27651

hbase-daemon.sh foreground_start should propagate SIGHUP and SIGTERM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.0, 3.0.0-alpha-4, 2.4.17, 2.5.4
    • 2.6.0, 3.0.0-alpha-4, 2.4.17, 2.5.4
    • scripts
    • None
    • Hide
      <!-- markdown -->
      Introduce separate `trap`s for SIGHUP vs. the rest. Treat `SIGINT`, `SIGKILL`, and `EXIT` identically, as before. Use the signal name without `SIG` prefix for increased portability, as per the POSIX man page for `trap`.

      `SIGTERM` handler will now honor `HBASE_STOP_TIMEOUT` as described in the file header.
      Show
      <!-- markdown --> Introduce separate `trap`s for SIGHUP vs. the rest. Treat `SIGINT`, `SIGKILL`, and `EXIT` identically, as before. Use the signal name without `SIG` prefix for increased portability, as per the POSIX man page for `trap`. `SIGTERM` handler will now honor `HBASE_STOP_TIMEOUT` as described in the file header.

    Description

      Running HBase in a container environment, launched using bin/hbase-daemon.sh foreground_start .... Signaling the container for config refresh or for graceful termination doesn't make it through to the JVM process. Rather, the trap function is unconditionally sending kill -9.

      Attachments

        Activity

          People

            ndimiduk Nick Dimiduk
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: