HBASE-7908 Add jstack logs in hbase-common.sh when killing the server
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1461167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fbf0b65205
commit
4781357ef3
|
@ -33,6 +33,7 @@ waitForProcessEnd() {
|
||||||
# process still there : kill -9
|
# process still there : kill -9
|
||||||
if kill -0 $pidKilled > /dev/null 2>&1; then
|
if kill -0 $pidKilled > /dev/null 2>&1; then
|
||||||
echo -n force stopping $commandName with kill -9 $pidKilled
|
echo -n force stopping $commandName with kill -9 $pidKilled
|
||||||
|
$JAVA_HOME/bin/jstack -l $pidKilled > "$logout" 2>&1
|
||||||
kill -9 $pidKilled > /dev/null 2>&1
|
kill -9 $pidKilled > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
# Add a CR after we're done w/ dots.
|
# Add a CR after we're done w/ dots.
|
||||||
|
|
Loading…
Reference in New Issue