HADOOP-1404. HBase command-line shutdown failing (Michael Stack)
git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@540323 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba1ef8c0c3
commit
8a53c236b9
|
@ -5,3 +5,4 @@ Trunk (unreleased changes)
|
||||||
|
|
||||||
1. HADOOP-1384. HBase omnibus patch. (jimk, Vuk Ercegovac, and Michael Stack)
|
1. HADOOP-1384. HBase omnibus patch. (jimk, Vuk Ercegovac, and Michael Stack)
|
||||||
2. HADOOP-1402. Fix javadoc warnings in hbase contrib. (Michael Stack)
|
2. HADOOP-1402. Fix javadoc warnings in hbase contrib. (Michael Stack)
|
||||||
|
3. HADOOP-1404. HBase command-line shutdown failing (Michael Stack)
|
||||||
|
|
|
@ -655,12 +655,19 @@ public class HMaster implements HConstants, HMasterInterface,
|
||||||
* things down in an orderly fashion.
|
* things down in an orderly fashion.
|
||||||
*/
|
*/
|
||||||
public void shutdown() throws IOException {
|
public void shutdown() throws IOException {
|
||||||
|
TimerTask tt = new TimerTask() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
closed = true;
|
closed = true;
|
||||||
synchronized(msgQueue) {
|
synchronized(msgQueue) {
|
||||||
msgQueue.clear(); // Empty the queue
|
msgQueue.clear(); // Empty the queue
|
||||||
msgQueue.notifyAll(); // Wake main thread
|
msgQueue.notifyAll(); // Wake main thread
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
Timer t = new Timer("Shutdown");
|
||||||
|
t.schedule(tt, 10);
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// HMasterRegionInterface
|
// HMasterRegionInterface
|
||||||
|
|
Loading…
Reference in New Issue