You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/08/10 01:01:58 UTC

svn commit: r1512524 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/migration/NamespaceUpgrade.java

Author: stack
Date: Fri Aug  9 23:01:58 2013
New Revision: 1512524

URL: http://svn.apache.org/r1512524
Log:
HBASE-9168 TestMetaMigrationConvertingToPB fails on hadoop 2.0 due to FileNotFoundException

Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/migration/NamespaceUpgrade.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/migration/NamespaceUpgrade.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/migration/NamespaceUpgrade.java?rev=1512524&r1=1512523&r2=1512524&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/migration/NamespaceUpgrade.java (original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/migration/NamespaceUpgrade.java Fri Aug  9 23:01:58 2013
@@ -111,6 +111,7 @@ public class NamespaceUpgrade implements
 
     //migrate tables including archive and tmp
     for(Path baseDir: baseDirs) {
+      if (!fs.exists(baseDir)) continue;
       List<Path> oldTableDirs = FSUtils.getLocalTableDirs(fs, baseDir);
       for(Path oldTableDir: oldTableDirs) {
         if (!sysTables.contains(oldTableDir.getName())) {