hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1214055 - in /hbase/branches/0.90: CHANGES.txt src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java
Date Wed, 14 Dec 2011 05:01:24 GMT
Author: stack
Date: Wed Dec 14 05:01:24 2011
New Revision: 1214055

URL: http://svn.apache.org/viewvc?rev=1214055&view=rev
Log:
HBASE-5020 MetaReader#fullScan doesn't stop scanning when vistor returns false in 0.90 version

Modified:
    hbase/branches/0.90/CHANGES.txt
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java

Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1214055&r1=1214054&r2=1214055&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Wed Dec 14 05:01:24 2011
@@ -3,6 +3,8 @@ Release 0.90.6 - Unreleased
   BUG FIXES
    HBASE-5008  The clusters can't provide services because Region can't flush
                (Gaojinchao)
+   HBASE-5020  MetaReader#fullScan doesn't stop scanning when vistor returns
+               false in 0.90 version (Chunhui Shen)
 
 Release 0.90.5 - Unreleased
   BUG FIXES

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java?rev=1214055&r1=1214054&r2=1214055&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java (original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java Wed
Dec 14 05:01:24 2011
@@ -262,7 +262,12 @@ public class MetaReader {
     try {
       Result data;
       while((data = metaServer.next(scannerid)) != null) {
-        if (!data.isEmpty()) visitor.visit(data);
+        if (!data.isEmpty()) {
+          // Break if visit returns false.
+          if (!visitor.visit(data)) {
+            break;
+          }
+        }
       }
     } finally {
       metaServer.close(scannerid);



Mime
View raw message