Skip to content

Commit

Permalink
HBASE-28687 BackupSystemTable#checkSystemTable should ensure system t…
Browse files Browse the repository at this point in the history
…ables are enabled
  • Loading branch information
Ray Mattingly committed Jun 21, 2024
1 parent f8aa3e2 commit 7aef574
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,14 @@ private void checkSystemTable() throws IOException {
if (!admin.tableExists(tableName)) {
TableDescriptor backupHTD = BackupSystemTable.getSystemTableDescriptor(conf);
createSystemTable(admin, backupHTD);
} else if (!admin.isTableEnabled(tableName)) {
admin.enableTable(tableName);
}
if (!admin.tableExists(bulkLoadTableName)) {
TableDescriptor blHTD = BackupSystemTable.getSystemTableForBulkLoadedDataDescriptor(conf);
createSystemTable(admin, blHTD);
} else if (!admin.isTableEnabled(bulkLoadTableName)) {
admin.enableTable(bulkLoadTableName);
}
waitForSystemTable(admin, tableName);
waitForSystemTable(admin, bulkLoadTableName);
Expand Down

0 comments on commit 7aef574

Please sign in to comment.