See
<https://builds.apache.org/job/HBase-1.2/jdk=latest1.7,label=Hadoop/213/changes>
Changes:
[stack] HBASE-14465 Backport 'Allow rowlock to be reader/write' to branch-1
------------------------------------------
[...truncated 45457 lines...]
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.6 sec <<<
FAILURE! - in org.apache.hadoop.hbase.master.TestMasterFailover
testMasterFailoverWithMockedRIT(org.apache.hadoop.hbase.master.TestMasterFailover)
Time elapsed: 240.043 sec <<< ERROR!
org.junit.runners.model.TestTimedOutException: test timed out after 240000
milliseconds
at java.lang.Thread.sleep(Native Method)
at org.apache.hadoop.hbase.util.Threads.sleep(Threads.java:146)
at
org.apache.hadoop.hbase.MiniHBaseCluster.waitForActiveAndReadyMaster(MiniHBaseCluster.java:535)
at
org.apache.hadoop.hbase.HBaseCluster.waitForActiveAndReadyMaster(HBaseCluster.java:280)
at
org.apache.hadoop.hbase.master.TestMasterFailover.testMasterFailoverWithMockedRIT(TestMasterFailover.java:400)
Tests run: 15, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 133.688 sec -
in org.apache.hadoop.hbase.master.TestSplitLogManager
Running org.apache.hadoop.hbase.master.TestMasterPriorityRpc
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.644 sec - in
org.apache.hadoop.hbase.master.TestMasterPriorityRpc
Running org.apache.hadoop.hbase.master.TestMasterTransitions
Tests run: 3, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.002 sec - in
org.apache.hadoop.hbase.master.TestMasterTransitions
Running org.apache.hadoop.hbase.master.TestMasterOperationsForRegionReplicas
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.991 sec - in
org.apache.hadoop.hbase.master.TestMasterOperationsForRegionReplicas
Running org.apache.hadoop.hbase.master.TestRestartCluster
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 114.737 sec -
in org.apache.hadoop.hbase.master.TestAssignmentManagerOnCluster
Running org.apache.hadoop.hbase.master.cleaner.TestSnapshotFromMaster
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.356 sec - in
org.apache.hadoop.hbase.master.cleaner.TestSnapshotFromMaster
Running org.apache.hadoop.hbase.master.cleaner.TestLogsCleaner
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.294 sec - in
org.apache.hadoop.hbase.master.cleaner.TestLogsCleaner
Running org.apache.hadoop.hbase.master.cleaner.TestHFileCleaner
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.992 sec - in
org.apache.hadoop.hbase.master.cleaner.TestHFileCleaner
Running org.apache.hadoop.hbase.master.TestMasterMetrics
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec - in
org.apache.hadoop.hbase.master.TestMasterMetrics
Running org.apache.hadoop.hbase.master.TestAssignmentListener
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.31 sec - in
org.apache.hadoop.hbase.master.TestAssignmentListener
Running org.apache.hadoop.hbase.TestLocalHBaseCluster
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.531 sec - in
org.apache.hadoop.hbase.TestLocalHBaseCluster
Running org.apache.hadoop.hbase.trace.TestHTraceHooks
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.681 sec - in
org.apache.hadoop.hbase.trace.TestHTraceHooks
Running org.apache.hadoop.hbase.TestPartialResultsFromClientSide
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 46.58 sec - in
org.apache.hadoop.hbase.TestPartialResultsFromClientSide
Running org.apache.hadoop.hbase.io.encoding.TestLoadAndSwitchEncodeOnDisk
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 341.471 sec -
in org.apache.hadoop.hbase.master.balancer.TestStochasticLoadBalancer
Running org.apache.hadoop.hbase.io.encoding.TestChangingEncoding
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.353 sec - in
org.apache.hadoop.hbase.io.encoding.TestLoadAndSwitchEncodeOnDisk
Running org.apache.hadoop.hbase.io.encoding.TestEncodedSeekers
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 249.332 sec <<<
FAILURE! - in org.apache.hadoop.hbase.master.TestRestartCluster
testClusterRestart(org.apache.hadoop.hbase.master.TestRestartCluster) Time
elapsed: 226.324 sec <<< ERROR!
java.io.IOException: Shutting down
at
org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:225)
at
org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:445)
at
org.apache.hadoop.hbase.MiniHBaseCluster.init(MiniHBaseCluster.java:225)
at
org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:94)
at
org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:81)
at
org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:68)
at
org.apache.hadoop.hbase.HBaseTestingUtility.restartHBaseCluster(HBaseTestingUtility.java:1045)
at
org.apache.hadoop.hbase.master.TestRestartCluster.testClusterRestart(TestRestartCluster.java:127)
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 266.328 sec -
in org.apache.hadoop.hbase.master.TestRestartCluster
Running org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 114.705 sec -
in org.apache.hadoop.hbase.io.encoding.TestEncodedSeekers
Running org.apache.hadoop.hbase.io.encoding.TestBufferedDataBlockEncoder
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 488.523 sec -
in org.apache.hadoop.hbase.master.balancer.TestStochasticLoadBalancer2
Running org.apache.hadoop.hbase.io.hfile.TestCacheOnWrite
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 140.557 sec -
in org.apache.hadoop.hbase.io.encoding.TestChangingEncoding
Running org.apache.hadoop.hbase.io.hfile.TestHFileBlockIndex
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.472 sec - in
org.apache.hadoop.hbase.io.encoding.TestBufferedDataBlockEncoder
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.101 sec -
in org.apache.hadoop.hbase.io.hfile.TestHFileBlockIndex
Running org.apache.hadoop.hbase.io.hfile.TestScannerSelectionUsingTTL
Running org.apache.hadoop.hbase.io.hfile.TestCacheConfig
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.651 sec - in
org.apache.hadoop.hbase.io.hfile.TestCacheConfig
Running org.apache.hadoop.hbase.io.hfile.TestHFileBlock
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 63.085 sec - in
org.apache.hadoop.hbase.io.hfile.TestScannerSelectionUsingTTL
Running org.apache.hadoop.hbase.io.hfile.TestForceCacheImportantBlocks
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 90.227 sec -
in org.apache.hadoop.hbase.io.hfile.TestHFileBlock
Running org.apache.hadoop.hbase.io.hfile.TestHFileSeek
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.128 sec - in
org.apache.hadoop.hbase.io.hfile.TestHFileSeek
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 34.481 sec - in
org.apache.hadoop.hbase.io.hfile.TestForceCacheImportantBlocks
Running org.apache.hadoop.hbase.io.TestFileLink
Running org.apache.hadoop.hbase.constraint.TestConstraint
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.461 sec - in
org.apache.hadoop.hbase.io.TestFileLink
Running org.apache.hadoop.hbase.filter.TestColumnRangeFilter
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.301 sec - in
org.apache.hadoop.hbase.constraint.TestConstraint
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.222 sec - in
org.apache.hadoop.hbase.filter.TestColumnRangeFilter
Running org.apache.hadoop.hbase.filter.TestFuzzyRowAndColumnRangeFilter
Running org.apache.hadoop.hbase.filter.TestFuzzyRowFilterEndToEnd
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.243 sec - in
org.apache.hadoop.hbase.filter.TestFuzzyRowAndColumnRangeFilter
Running org.apache.hadoop.hbase.filter.TestFilterWithScanLimits
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 241.488 sec -
in org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.123 sec - in
org.apache.hadoop.hbase.filter.TestFilterWithScanLimits
Running org.apache.hadoop.hbase.filter.TestMultiRowRangeFilter
Running org.apache.hadoop.hbase.filter.TestScanRowPrefix
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.278 sec - in
org.apache.hadoop.hbase.filter.TestScanRowPrefix
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.006 sec -
in org.apache.hadoop.hbase.filter.TestMultiRowRangeFilter
Running org.apache.hadoop.hbase.TestGlobalMemStoreSize
Running org.apache.hadoop.hbase.filter.TestFilterWrapper
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.09 sec - in
org.apache.hadoop.hbase.filter.TestFilterWrapper
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.68 sec - in
org.apache.hadoop.hbase.TestGlobalMemStoreSize
Running org.apache.hadoop.hbase.TestHBaseOnOtherDfsCluster
Running org.apache.hadoop.hbase.TestNamespace
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.476 sec - in
org.apache.hadoop.hbase.TestHBaseOnOtherDfsCluster
Running org.apache.hadoop.hbase.migration.TestUpgradeTo96
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.199 sec - in
org.apache.hadoop.hbase.migration.TestUpgradeTo96
Tests run: 9, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 24.793 sec - in
org.apache.hadoop.hbase.TestNamespace
Running org.apache.hadoop.hbase.migration.TestNamespaceUpgrade
Running org.apache.hadoop.hbase.replication.TestReplicationSource
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 sec - in
org.apache.hadoop.hbase.replication.TestReplicationSource
Running org.apache.hadoop.hbase.replication.TestReplicationWithTags
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.642 sec - in
org.apache.hadoop.hbase.migration.TestNamespaceUpgrade
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.762 sec - in
org.apache.hadoop.hbase.replication.TestReplicationWithTags
Running org.apache.hadoop.hbase.replication.TestPerTableCFReplication
Running
org.apache.hadoop.hbase.replication.TestReplicationChangingPeerRegionservers
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.141 sec - in
org.apache.hadoop.hbase.replication.TestReplicationChangingPeerRegionservers
Running org.apache.hadoop.hbase.replication.TestReplicationSmallTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 34.893 sec - in
org.apache.hadoop.hbase.replication.TestPerTableCFReplication
Running org.apache.hadoop.hbase.replication.TestMultiSlaveReplication
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.123 sec - in
org.apache.hadoop.hbase.replication.TestMultiSlaveReplication
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 210.725 sec -
in org.apache.hadoop.hbase.filter.TestFuzzyRowFilterEndToEnd
Running org.apache.hadoop.hbase.replication.TestMasterReplication
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.712 sec -
in org.apache.hadoop.hbase.replication.TestReplicationSmallTests
Running org.apache.hadoop.hbase.replication.TestReplicationKillSlaveRS
Running
org.apache.hadoop.hbase.replication.regionserver.TestReplicationWALReaderManager
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.19 sec - in
org.apache.hadoop.hbase.replication.TestReplicationKillSlaveRS
Tests run: 216, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 404.822 sec -
in org.apache.hadoop.hbase.io.hfile.TestCacheOnWrite
Running
org.apache.hadoop.hbase.replication.regionserver.TestRegionReplicaReplicationEndpointNoMaster
Running
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSourceManager
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.481 sec - in
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSourceManager
Running org.apache.hadoop.hbase.replication.regionserver.TestReplicationSink
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.047 sec - in
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSink
Running
org.apache.hadoop.hbase.replication.regionserver.TestRegionReplicaReplicationEndpoint
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 67.449 sec - in
org.apache.hadoop.hbase.replication.TestMasterReplication
Running org.apache.hadoop.hbase.replication.TestReplicationStateZKImpl
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec - in
org.apache.hadoop.hbase.replication.TestReplicationStateZKImpl
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.803 sec - in
org.apache.hadoop.hbase.replication.regionserver.TestRegionReplicaReplicationEndpointNoMaster
Running org.apache.hadoop.hbase.replication.TestReplicationEndpoint
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.622 sec - in
org.apache.hadoop.hbase.replication.TestReplicationEndpoint
Running org.apache.hadoop.hbase.replication.TestReplicationSyncUpTool
Running org.apache.hadoop.hbase.replication.TestReplicationTrackerZKImpl
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.225 sec - in
org.apache.hadoop.hbase.replication.TestReplicationTrackerZKImpl
Running org.apache.hadoop.hbase.replication.TestReplicationKillMasterRS
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.227 sec - in
org.apache.hadoop.hbase.replication.TestReplicationKillMasterRS
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 51.886 sec - in
org.apache.hadoop.hbase.replication.TestReplicationSyncUpTool
Running
org.apache.hadoop.hbase.replication.TestReplicationKillMasterRSCompressed
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 88.098 sec - in
org.apache.hadoop.hbase.replication.regionserver.TestRegionReplicaReplicationEndpoint
Running org.apache.hadoop.hbase.replication.TestReplicationDisableInactivePeer
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.679 sec - in
org.apache.hadoop.hbase.replication.TestReplicationKillMasterRSCompressed
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.115 sec - in
org.apache.hadoop.hbase.replication.TestReplicationDisableInactivePeer
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 211.131 sec -
in
org.apache.hadoop.hbase.replication.regionserver.TestReplicationWALReaderManager
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 540.729 sec <<<
FAILURE! - in org.apache.hadoop.hbase.master.TestMasterFailover
testMasterFailoverWithMockedRIT(org.apache.hadoop.hbase.master.TestMasterFailover)
Time elapsed: 239.135 sec <<< ERROR!
org.junit.runners.model.TestTimedOutException: test timed out after 240000
milliseconds
at java.lang.Thread.sleep(Native Method)
at org.apache.hadoop.hbase.util.Threads.sleep(Threads.java:146)
at
org.apache.hadoop.hbase.MiniHBaseCluster.waitForActiveAndReadyMaster(MiniHBaseCluster.java:535)
at
org.apache.hadoop.hbase.HBaseCluster.waitForActiveAndReadyMaster(HBaseCluster.java:280)
at
org.apache.hadoop.hbase.master.TestMasterFailover.testMasterFailoverWithMockedRIT(TestMasterFailover.java:400)
Results :
Tests in error:
org.apache.hadoop.hbase.master.TestMasterFailover.testMasterFailoverWithMockedRIT(org.apache.hadoop.hbase.master.TestMasterFailover)
Run 1: TestMasterFailover.testMasterFailoverWithMockedRIT:400 » TestTimedOut
test tim...
Run 2: TestMasterFailover.testMasterFailoverWithMockedRIT:400 » TestTimedOut
test tim...
Flaked tests:
org.apache.hadoop.hbase.master.TestRestartCluster.testClusterRestart(org.apache.hadoop.hbase.master.TestRestartCluster)
Run 1: TestRestartCluster.testClusterRestart:127 » IO Shutting down
Run 2: PASS
Tests run: 2623, Failures: 0, Errors: 1, Skipped: 40, Flakes: 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache HBase ...................................... SUCCESS [3:57.947s]
[INFO] Apache HBase - Checkstyle ......................... SUCCESS [20.124s]
[INFO] Apache HBase - Resource Bundle .................... SUCCESS [0.263s]
[INFO] Apache HBase - Annotations ........................ SUCCESS [1.084s]
[INFO] Apache HBase - Protocol ........................... SUCCESS [20.851s]
[INFO] Apache HBase - Common ............................. SUCCESS [4:37.462s]
[INFO] Apache HBase - Procedure .......................... SUCCESS [1:55.283s]
[INFO] Apache HBase - Client ............................. SUCCESS [2:03.036s]
[INFO] Apache HBase - Hadoop Compatibility ............... SUCCESS [8.960s]
[INFO] Apache HBase - Hadoop Two Compatibility ........... SUCCESS [13.620s]
[INFO] Apache HBase - Prefix Tree ........................ SUCCESS [10.047s]
[INFO] Apache HBase - Server ............................. FAILURE
[1:57:50.774s]
[INFO] Apache HBase - Testing Util ....................... SKIPPED
[INFO] Apache HBase - Thrift ............................. SKIPPED
[INFO] Apache HBase - Rest ............................... SKIPPED
[INFO] Apache HBase - Shell .............................. SKIPPED
[INFO] Apache HBase - Integration Tests .................. SKIPPED
[INFO] Apache HBase - Examples ........................... SKIPPED
[INFO] Apache HBase - External Block Cache ............... SKIPPED
[INFO] Apache HBase - Assembly ........................... SKIPPED
[INFO] Apache HBase - Shaded ............................. SKIPPED
[INFO] Apache HBase - Shaded - Client .................... SKIPPED
[INFO] Apache HBase - Shaded - Server .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:12:57.880s
[INFO] Finished at: Wed Sep 30 22:04:11 UTC 2015
[INFO] Final Memory: 95M/646M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test
(secondPartTestsExecution) on project hbase-server: ExecutionException:
java.lang.RuntimeException: The forked VM terminated without properly saying
goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd
<https://builds.apache.org/job/HBase-1.2/jdk=latest1.7,label=Hadoop/ws/hbase-server>
&& /home/jenkins/jenkins-slave/tools/hudson.model.JDK/latest1.7/jre/bin/java
-enableassertions -XX:MaxDirectMemorySize=1G -Xmx2800m -XX:MaxPermSize=256m
-Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true -jar
<https://builds.apache.org/job/HBase-1.2/jdk=latest1.7,label=Hadoop/ws/hbase-server/target/surefire/surefirebooter7855455394047577253.jar>
<https://builds.apache.org/job/HBase-1.2/jdk=latest1.7,label=Hadoop/ws/hbase-server/target/surefire/surefire3323616036969808096tmp>
<https://builds.apache.org/job/HBase-1.2/jdk=latest1.7,label=Hadoop/ws/hbase-server/target/surefire/surefire_10032442299533903830381tmp>
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hbase-server
Build step 'Invoke top-level Maven targets' marked build as failure
Performing Post build task...
Match found for :.* : True
Logical operation result is TRUE
Running script : ZOMBIE_TESTS_COUNT=`jps | grep surefirebooter | wc -l`
if [[ $ZOMBIE_TESTS_COUNT != 0 ]] ; then
#It seems sometimes the tests are not dying immediately. Let's give them 10s
echo "Suspicious java process found - waiting 10s to see if there are just
slow to stop"
sleep 10
ZOMBIE_TESTS_COUNT=`jps | grep surefirebooter | wc -l`
if [[ $ZOMBIE_TESTS_COUNT != 0 ]] ; then
echo "There are $ZOMBIE_TESTS_COUNT zombie tests, they should have been
killed by surefire but survived"
echo "************ BEGIN zombies jstack extract"
ZB_STACK=`jps | grep surefirebooter | cut -d ' ' -f 1 | xargs -n 1 jstack
| grep ".test" | grep "\.java"`
jps | grep surefirebooter | cut -d ' ' -f 1 | xargs -n 1 jstack
echo "************ END zombies jstack extract"
JIRA_COMMENT="$JIRA_COMMENT
{color:red}-1 core zombie tests{color}. There are ${ZOMBIE_TESTS_COUNT}
zombie test(s): ${ZB_STACK}"
BAD=1
jps | grep surefirebooter | cut -d ' ' -f 1 | xargs kill -9
else
echo "We're ok: there is no zombie test, but some tests took some time to
stop"
fi
else
echo "We're ok: there is no zombie test"
fi
[Hadoop] $ /bin/bash -xe /tmp/hudson5969394746833894087.sh
++ jps
++ grep surefirebooter
++ wc -l
+ ZOMBIE_TESTS_COUNT=0
+ [[ 0 != 0 ]]
+ echo 'We'\''re ok: there is no zombie test'
We're ok: there is no zombie test
POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 0
Archiving artifacts