accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [1/4] accumulo git commit: ACCUMULO-3580 Make metadata iterator consume in the normal case
Date Thu, 12 Feb 2015 02:16:16 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.5 c475c85ff -> 33890b00e
  refs/heads/1.6 0a7e1174c -> fe77101d0


ACCUMULO-3580 Make metadata iterator consume in the normal case


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/33890b00
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/33890b00
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/33890b00

Branch: refs/heads/1.5
Commit: 33890b00e1cf7f353631439eb6278d646ce70194
Parents: c475c85
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Wed Feb 11 17:12:01 2015 -0500
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Wed Feb 11 17:12:01 2015 -0500

----------------------------------------------------------------------
 .../accumulo/server/master/state/TabletStateChangeIterator.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/33890b00/server/src/main/java/org/apache/accumulo/server/master/state/TabletStateChangeIterator.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/accumulo/server/master/state/TabletStateChangeIterator.java
b/server/src/main/java/org/apache/accumulo/server/master/state/TabletStateChangeIterator.java
index 405bab7..b11809c 100644
--- a/server/src/main/java/org/apache/accumulo/server/master/state/TabletStateChangeIterator.java
+++ b/server/src/main/java/org/apache/accumulo/server/master/state/TabletStateChangeIterator.java
@@ -142,11 +142,15 @@ public class TabletStateChangeIterator extends SkippingIterator {
         case HOSTED:
           if (!shouldBeOnline)
             return;
+          break;
         case ASSIGNED_TO_DEAD_SERVER:
           return;
         case UNASSIGNED:
           if (shouldBeOnline)
             return;
+          break;
+        default:
+          throw new AssertionError("Inconceivable! The tablet is an unrecognized state: "
+ tls.getState(current));
       }
       // table is in the expected state so don't bother returning any information about it
       getSource().next();


Mime
View raw message