HBASE-8067 TestHFileArchiving.testArchiveOnTableDelete sometimes fails -- more debug

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1455234 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
mbertozzi 2013-03-11 17:01:32 +00:00
parent 713ec8c4a7
commit 95e4f53090
2 changed files with 5 additions and 0 deletions

View File

@ -104,11 +104,15 @@ public class DeleteTableHandler extends TableEventHandler {
if (!fs.delete(tempTableDir, true)) {
LOG.error("Couldn't delete " + tempTableDir);
}
LOG.debug("Table '" + tableName + "' archived!");
} finally {
// 6. Update table descriptor cache
LOG.debug("Removing '" + tableName + "' descriptor.");
this.masterServices.getTableDescriptors().remove(Bytes.toString(tableName));
// 7. If entry for this table in zk, and up in AssignmentManager, remove it.
LOG.debug("Marking '" + tableName + "' as deleted.");
am.getZKTable().setDeletedTable(Bytes.toString(tableName));
}

View File

@ -243,6 +243,7 @@ public class TestHFileArchiving {
// then delete the table so the hfiles get archived
UTIL.deleteTable(TABLE_NAME);
LOG.debug("Deleted table");
// then get the files in the archive directory.
Path archiveDir = HFileArchiveUtil.getArchivePath(UTIL.getConfiguration());