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:
parent
e95a7409af
commit
72449b2bf4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue