HBASE-4472 MiniHBaseCluster.shutdown() doesn't work if no active master
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1175050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
97e337f330
commit
8c94f9f825
|
@ -301,6 +301,7 @@ Release 0.92.0 - Unreleased
|
||||||
(Ming Ma)
|
(Ming Ma)
|
||||||
HBASE-4468 Wrong resource name in an error massage: webapps instead of
|
HBASE-4468 Wrong resource name in an error massage: webapps instead of
|
||||||
hbase-webapps (nkeywal)
|
hbase-webapps (nkeywal)
|
||||||
|
HBASE-4472 MiniHBaseCluster.shutdown() doesn't work if no active master
|
||||||
|
|
||||||
TESTS
|
TESTS
|
||||||
HBASE-4450 test for number of blocks read: to serve as baseline for expected
|
HBASE-4450 test for number of blocks read: to serve as baseline for expected
|
||||||
|
|
|
@ -218,9 +218,10 @@ public class JVMClusterUtil {
|
||||||
}
|
}
|
||||||
// regionServerThreads can never be null because they are initialized when
|
// regionServerThreads can never be null because they are initialized when
|
||||||
// the class is constructed.
|
// the class is constructed.
|
||||||
for(Thread t: regionservers) {
|
for(RegionServerThread t: regionservers) {
|
||||||
if (t.isAlive()) {
|
if (t.isAlive()) {
|
||||||
try {
|
try {
|
||||||
|
t.getRegionServer().stop("Shutdown requested");
|
||||||
t.join();
|
t.join();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// continue
|
// continue
|
||||||
|
|
Loading…
Reference in New Issue