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

hbase-daemon.sh should clean up PID files on process stop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.90.0
    • Component/s: scripts
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I just did a simple watchdog script for internal use to enable HBase process restarts on failure. While most of it was easy, I found no way to distinguish between a process failure and intentional stop, since the HBase scripts leave PID files sitting around after shutdown.

      I think it would be generally useful for hbase-daemon.sh to cleanup PID files on successful process stop. This is really just a matter of adding "rm $pid" after stop completes. Any concerns/objections?

        Attachments

        1. HBASE-3430.patch
          0.3 kB
          Gary Helmling

          Activity

            People

            • Assignee:
              ghelmling Gary Helmling
              Reporter:
              ghelmling Gary Helmling
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: