HBASE-19940 TestMetaShutdownHandler flakey
This commit is contained in:
parent
a1600c1490
commit
7723a3d60d
|
@ -296,7 +296,15 @@ public class JVMClusterUtil {
|
||||||
if (!atLeastOneLiveServer) break;
|
if (!atLeastOneLiveServer) break;
|
||||||
for (RegionServerThread t : regionservers) {
|
for (RegionServerThread t : regionservers) {
|
||||||
if (t.isAlive()) {
|
if (t.isAlive()) {
|
||||||
LOG.warn("RegionServerThreads taking too long to stop, interrupting");
|
LOG.warn("RegionServerThreads taking too long to stop, interrupting; thread dump " +
|
||||||
|
"if > three attempts");
|
||||||
|
if (i > 3) {
|
||||||
|
try {
|
||||||
|
Threads.threadDumpingIsAlive(t.getRegionServer().getThread());
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
t.interrupt();
|
t.interrupt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue