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

hbase-deamon.sh creates/updates pid file even when that start failed.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Usability
    • Labels:
      None

      Description

      We just ran into a strange issue where could neither start nor stop services with hbase-deamon.sh.

      The problem is this:

          nohup nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
              --config "${HBASE_CONF_DIR}" \
              $command "$@" $startStop > "$logout" 2>&1 < /dev/null &
          echo $! > $pid
      

      So the pid file is created or updated even when the start of the service failed. The next stop command will then fail, because the pid file has the wrong pid in it.

      Edit: Spelling and more spelling errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                larsh Lars Hofhansl
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: