HBASE-19940 TestMetaShutdownHandler flakey

This commit is contained in:
Michael Stack 2018-02-05 12:37:48 -08:00
parent 9f2149f171
commit 6307689a6e
1 changed files with 9 additions and 1 deletions

View File

@ -296,7 +296,15 @@ public class JVMClusterUtil {
if (!atLeastOneLiveServer) break;
for (RegionServerThread t : regionservers) {
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();
}
}