accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1448315 - /accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/master/recovery/RecoverLease.java
Date Wed, 20 Feb 2013 17:42:39 GMT
Author: ecn
Date: Wed Feb 20 17:42:39 2013
New Revision: 1448315

URL: http://svn.apache.org/r1448315
Log:
ACCUMULO-1053 handle unexpected file system types

Modified:
    accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/master/recovery/RecoverLease.java

Modified: accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/master/recovery/RecoverLease.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/master/recovery/RecoverLease.java?rev=1448315&r1=1448314&r2=1448315&view=diff
==============================================================================
--- accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/master/recovery/RecoverLease.java
(original)
+++ accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/master/recovery/RecoverLease.java
Wed Feb 20 17:42:39 2013
@@ -25,6 +25,7 @@ import org.apache.accumulo.server.master
 import org.apache.accumulo.server.master.tableOps.MasterRepo;
 import org.apache.accumulo.server.trace.TraceFileSystem;
 import org.apache.hadoop.fs.FileSystem;
+import org.apache.hadoop.fs.LocalFileSystem;
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hdfs.DistributedFileSystem;
 
@@ -79,6 +80,10 @@ public class RecoverLease extends Master
         }
         log.info("Recovered lease on " + source.toString());
         return 0;
+      } else if (fs instanceof LocalFileSystem) {
+        // ignore
+      } else {
+        throw new IllegalStateException("Don't know how to recover a lease for "  + fs.getClass().getName());

       }
     } catch (IOException ex) {
       log.error("error recovering lease ", ex);



Mime
View raw message