String idxTblName = index.getIndexTableName();
if (idxTblName != null) {
Table tbl = null;
tbl = this.get_table(dbName, idxTblName);
if (tbl.getSd() == null) {
throw new MetaException("Table metadata is corrupted");
}
if (tbl.getSd().getLocation() != null) {
tblPath = new Path(tbl.getSd().getLocation());
}
if (!ms.dropTable(dbName, idxTblName)) {
throw new MetaException("Unable to drop underlying data table "
+ idxTblName + " for index " + idxTblName);
}
}
success = ms.commitTransaction();
} finally {