HBASE-2513 hbase-2414 added bug where we'd tight-loop if no root available
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@941546 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
14b68ca4c0
commit
013fd99d0d
|
@ -122,8 +122,8 @@ public class RegionServerOperationQueue {
|
||||||
// it first.
|
// it first.
|
||||||
if (rootRegionLocation != null) {
|
if (rootRegionLocation != null) {
|
||||||
op = delayedToDoQueue.poll();
|
op = delayedToDoQueue.poll();
|
||||||
} else {
|
}
|
||||||
// if there aren't any todo items in the queue, sleep for a bit.
|
if (op == null) {
|
||||||
try {
|
try {
|
||||||
op = toDoQueue.poll(threadWakeFrequency, TimeUnit.MILLISECONDS);
|
op = toDoQueue.poll(threadWakeFrequency, TimeUnit.MILLISECONDS);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
Loading…
Reference in New Issue