HBASE-4547 TestAdmin failing in 0.92 because .tableinfo not found

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1180085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-10-07 16:04:30 +00:00
parent e95a7409af
commit 72449b2bf4
1 changed files with 1 additions and 1 deletions

View File

@ -1067,7 +1067,7 @@ public abstract class FSUtils {
// hole. Need to fix. // hole. Need to fix.
try { try {
if (forceCreation) { if (forceCreation) {
if (!fs.delete(tableInfoPath, false)) { if (fs.exists(tableInfoPath) && !fs.delete(tableInfoPath, false)) {
String errMsg = "Unable to delete " + tableInfoPath String errMsg = "Unable to delete " + tableInfoPath
+ " while forcefully writing the table descriptor."; + " while forcefully writing the table descriptor.";
LOG.error(errMsg); LOG.error(errMsg);