HBASE-19940 TestMetaShutdownHandler flakey

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

View File

@ -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();
} }
} }