hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r712944 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/regionserver/MemcacheFlusher.java
Date Tue, 11 Nov 2008 05:31:13 GMT
Author: stack
Date: Mon Nov 10 21:31:12 2008
New Revision: 712944

URL: http://svn.apache.org/viewvc?rev=712944&view=rev
Log:
HBASE-990 NoSuchElementException in flushSomeRegions

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/MemcacheFlusher.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=712944&r1=712943&r2=712944&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Mon Nov 10 21:31:12 2008
@@ -68,6 +68,7 @@
    HBASE-951   Either shut down master or let it finish cleanup
    HBASE-964, HBASE-678 provide for safe-mode without locking up HBase "waiting
                for root region"
+   HBASE-990   NoSuchElementException in flushSomeRegions
    
   IMPROVEMENTS
    HBASE-901   Add a limit to key length, check key and value length on client side

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/MemcacheFlusher.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/MemcacheFlusher.java?rev=712944&r1=712943&r2=712944&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/MemcacheFlusher.java
(original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/MemcacheFlusher.java
Mon Nov 10 21:31:12 2008
@@ -221,6 +221,10 @@
   private synchronized void flushSomeRegions() {
     SortedMap<Long, HRegion> m =
       this.server.getCopyOfOnlineRegionsSortedBySize();
+    if (m.size() <= 0) {
+      LOG.info("No online regions to flush though we've been asked flush some.");
+      return;
+    }
     // keep flushing until we hit the low water mark
     while (server.getGlobalMemcacheSize() >= globalMemcacheLimitLowMark) {
       // flush the region with the biggest memcache



Mime
View raw message