HBASE-4613 hbase.util.Threads#threadDumpingIsAlive sleeps 1 second, slowing down the shutdown by 0.5s
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1195056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4109e3a28
commit
b625995326
|
@ -428,6 +428,8 @@ Release 0.92.0 - Unreleased
|
|||
HBASE-4701 TestMasterObserver fails up on jenkins
|
||||
HBASE-4700 TestSplitTransactionOnCluster fails on occasion when it tries
|
||||
to move a region
|
||||
HBASE-4613 hbase.util.Threads#threadDumpingIsAlive sleeps 1 second,
|
||||
slowing down the shutdown by 0.5s
|
||||
|
||||
TESTS
|
||||
HBASE-4450 test for number of blocks read: to serve as baseline for expected
|
||||
|
|
|
@ -106,11 +106,10 @@ public class Threads {
|
|||
if (t == null) {
|
||||
return;
|
||||
}
|
||||
long startTime = System.currentTimeMillis();
|
||||
|
||||
while (t.isAlive()) {
|
||||
Thread.sleep(1000);
|
||||
if (System.currentTimeMillis() - startTime > 60000) {
|
||||
startTime = System.currentTimeMillis();
|
||||
t.join(60 * 1000);
|
||||
if (t.isAlive()) {
|
||||
ReflectionUtils.printThreadInfo(new PrintWriter(System.out),
|
||||
"Automatic Stack Trace every 60 seconds waiting on " +
|
||||
t.getName());
|
||||
|
|
Loading…
Reference in New Issue