HBASE-7505 Server will hang when stopping cluster, caused by waiting for split threads(Chunhui)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1430749 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
369b436bff
commit
485cf1a3ce
|
@ -251,6 +251,9 @@ public class CompactSplitThread implements CompactionRequestor {
|
||||||
try {
|
try {
|
||||||
done = t.awaitTermination(60, TimeUnit.SECONDS);
|
done = t.awaitTermination(60, TimeUnit.SECONDS);
|
||||||
LOG.info("Waiting for " + name + " to finish...");
|
LOG.info("Waiting for " + name + " to finish...");
|
||||||
|
if (!done) {
|
||||||
|
t.shutdownNow();
|
||||||
|
}
|
||||||
} catch (InterruptedException ie) {
|
} catch (InterruptedException ie) {
|
||||||
LOG.warn("Interrupted waiting for " + name + " to finish...");
|
LOG.warn("Interrupted waiting for " + name + " to finish...");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue