Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
huyuanfeng committed Nov 20, 2023
1 parent e691394 commit 5ec6937
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,16 +357,14 @@ private void planTasks() {
List<TableIdentifier> plannedTables = Lists.newArrayList();
for (TableRuntime tableRuntime : scheduledTables) {
LOG.debug("Planning table {}", tableRuntime.getTableIdentifier());
AmoroTable<?> table = tableManager.loadTable(tableRuntime.getTableIdentifier());
OptimizingPlanner planner =
new OptimizingPlanner(
tableRuntime.refresh(table),
(ArcticTable) table.originalTable(),
getAvailableCore());
if (tableRuntime.isBlocked(BlockableOperation.OPTIMIZE)) {
LOG.info("{} optimize is blocked, continue", tableRuntime.getTableIdentifier());
continue;
}
AmoroTable<?> table = tableManager.loadTable(tableRuntime.getTableIdentifier());
OptimizingPlanner planner =
new OptimizingPlanner(
tableRuntime.refresh(table), (ArcticTable) table.originalTable(), getAvailableCore());
if (tableRuntime.isBlocked(BlockableOperation.OPTIMIZE)) {
LOG.info("{} optimize is blocked, continue", tableRuntime.getTableIdentifier());
continue;
}
tableRuntime.beginPlanning();
try {
plannedTables.add(table.id());
Expand Down

0 comments on commit 5ec6937

Please sign in to comment.