hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r941546 - /hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/master/RegionServerOperationQueue.java
Date Wed, 05 May 2010 23:35:00 GMT
Author: stack
Date: Wed May  5 23:34:59 2010
New Revision: 941546

URL: http://svn.apache.org/viewvc?rev=941546&view=rev
Log:
HBASE-2513 hbase-2414 added bug where we'd tight-loop if no root available

Modified:
    hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/master/RegionServerOperationQueue.java

Modified: hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/master/RegionServerOperationQueue.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/master/RegionServerOperationQueue.java?rev=941546&r1=941545&r2=941546&view=diff
==============================================================================
--- hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/master/RegionServerOperationQueue.java
(original)
+++ hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/master/RegionServerOperationQueue.java
Wed May  5 23:34:59 2010
@@ -122,8 +122,8 @@ public class RegionServerOperationQueue 
     // it first.
     if (rootRegionLocation != null) {
       op = delayedToDoQueue.poll();
-    } else {
-    // if there aren't any todo items in the queue, sleep for a bit.
+    }
+    if (op == null) {
       try {
         op = toDoQueue.poll(threadWakeFrequency, TimeUnit.MILLISECONDS);
       } catch (InterruptedException e) {



Mime
View raw message