HBASE-14593 Add more info on zombies to test-patch.sh; ADD EVEN MORE

This commit is contained in:
stack 2015-10-13 07:53:57 -07:00
parent 657078b353
commit 6323cd9544
1 changed files with 3 additions and 1 deletions

View File

@ -884,11 +884,13 @@ runTests () {
ZOMBIE_TESTS_COUNT=`zombieCount`
if [[ $ZOMBIE_TESTS_COUNT != 0 ]] ; then
echo "There are $ZOMBIE_TESTS_COUNT zombie tests, they should have been killed by surefire but survived"
echo "************ zombies jps listing"
jps -v
jps -v | grep surefirebooter | grep '-Dhbase.test'
echo "************ BEGIN zombies jstack extract"
# HBase tests have been flagged with an innocuous '-Dhbase.test' just so they can
# be identified as hbase in a process listing.
ZB_STACK=`jps -v | grep surefirebooter | grep '-Dhbase.test' | cut -d ' ' -f 1 | xargs -n 1 jstack | grep ".test" | grep "\.java"`
jps -v | grep surefirebooter | grep '-Dhbase.test'
jps -v | grep surefirebooter | grep '-Dhbase.test' | cut -d ' ' -f 1 | xargs -n 1 jstack
echo "************ END zombies jstack extract"
JIRA_COMMENT="$JIRA_COMMENT