accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1376105 - /accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/tserverOps/FlushTablets.java
Date Wed, 22 Aug 2012 15:54:26 GMT
Author: vines
Date: Wed Aug 22 15:54:26 2012
New Revision: 1376105

URL: http://svn.apache.org/viewvc?rev=1376105&view=rev
Log:
ACCUMULO-676 - no !METADATA scan when we offline the last tserver


Modified:
    accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/tserverOps/FlushTablets.java

Modified: accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/tserverOps/FlushTablets.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/tserverOps/FlushTablets.java?rev=1376105&r1=1376104&r2=1376105&view=diff
==============================================================================
--- accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/tserverOps/FlushTablets.java
(original)
+++ accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/tserverOps/FlushTablets.java
Wed Aug 22 15:54:26 2012
@@ -58,7 +58,11 @@ public class FlushTablets extends Master
       } catch (DistributedStoreException e) {
         log.warn("Unable to open ZooTabletStateStore, will retry", e);
       }
-      MetaDataStateStore theRest = new MetaDataStateStore();
+      MetaDataStateStore theRest = null;
+      
+      if (m.onlineTabletServers().size() != 0)
+        theRest = new MetaDataStateStore();
+      
       for (TabletStateStore store : new TabletStateStore[] {zooTabletStateStore, theRest})
{
         if (store != null) {
           for (TabletLocationState tabletState : store) {



Mime
View raw message