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)
|
||||
2. HADOOP-1402. Fix javadoc warnings in hbase contrib. (Michael Stack)
|
||||
3. HADOOP-1404. HBase command-line shutdown failing (Michael Stack)
|
||||
|
|
|
@ -655,11 +655,18 @@ public class HMaster implements HConstants, HMasterInterface,
|
|||
* things down in an orderly fashion.
|
||||
*/
|
||||
public void shutdown() throws IOException {
|
||||
closed = true;
|
||||
synchronized(msgQueue) {
|
||||
msgQueue.clear(); // Empty the queue
|
||||
msgQueue.notifyAll(); // Wake main thread
|
||||
}
|
||||
TimerTask tt = new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
closed = true;
|
||||
synchronized(msgQueue) {
|
||||
msgQueue.clear(); // Empty the queue
|
||||
msgQueue.notifyAll(); // Wake main thread
|
||||
}
|
||||
}
|
||||
};
|
||||
Timer t = new Timer("Shutdown");
|
||||
t.schedule(tt, 10);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue