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:
parent
713ec8c4a7
commit
95e4f53090
|
@ -104,11 +104,15 @@ public class DeleteTableHandler extends TableEventHandler {
|
||||||
if (!fs.delete(tempTableDir, true)) {
|
if (!fs.delete(tempTableDir, true)) {
|
||||||
LOG.error("Couldn't delete " + tempTableDir);
|
LOG.error("Couldn't delete " + tempTableDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG.debug("Table '" + tableName + "' archived!");
|
||||||
} finally {
|
} finally {
|
||||||
// 6. Update table descriptor cache
|
// 6. Update table descriptor cache
|
||||||
|
LOG.debug("Removing '" + tableName + "' descriptor.");
|
||||||
this.masterServices.getTableDescriptors().remove(Bytes.toString(tableName));
|
this.masterServices.getTableDescriptors().remove(Bytes.toString(tableName));
|
||||||
|
|
||||||
// 7. If entry for this table in zk, and up in AssignmentManager, remove it.
|
// 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));
|
am.getZKTable().setDeletedTable(Bytes.toString(tableName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -243,6 +243,7 @@ public class TestHFileArchiving {
|
||||||
|
|
||||||
// then delete the table so the hfiles get archived
|
// then delete the table so the hfiles get archived
|
||||||
UTIL.deleteTable(TABLE_NAME);
|
UTIL.deleteTable(TABLE_NAME);
|
||||||
|
LOG.debug("Deleted table");
|
||||||
|
|
||||||
// then get the files in the archive directory.
|
// then get the files in the archive directory.
|
||||||
Path archiveDir = HFileArchiveUtil.getArchivePath(UTIL.getConfiguration());
|
Path archiveDir = HFileArchiveUtil.getArchivePath(UTIL.getConfiguration());
|
||||||
|
|
Loading…
Reference in New Issue