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 2011/10/07 18:04:09 UTC

svn commit: r1180084 - /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java

Author: stack
Date: Fri Oct  7 16:04:08 2011
New Revision: 1180084

URL: http://svn.apache.org/viewvc?rev=1180084&view=rev
Log:
HBASE-4547 TestAdmin failing in 0.92 because .tableinfo not found

Modified:
    hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java

Modified: hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java?rev=1180084&r1=1180083&r2=1180084&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java (original)
+++ hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java Fri Oct  7 16:04:08 2011
@@ -1067,7 +1067,7 @@ public abstract class FSUtils {
     // hole.  Need to fix.
     try {
       if (forceCreation) {
-        if (!fs.delete(tableInfoPath, false)) {
+        if (fs.exists(tableInfoPath) && !fs.delete(tableInfoPath, false)) {
           String errMsg = "Unable to delete " + tableInfoPath
               + " while forcefully writing the table descriptor.";
           LOG.error(errMsg);