Skip to content

Commit

Permalink
fix checkstyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-024 committed Dec 19, 2024
1 parent da23974 commit ba690d6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ public void processElement(StreamRecord<CdcMultiplexRecord> element) throws Exce
}
}

private FileStoreTable getTable(Identifier tableId) throws InterruptedException, Catalog.TableNoPermissionException {
private FileStoreTable getTable(Identifier tableId)
throws InterruptedException, Catalog.TableNoPermissionException {
FileStoreTable table = tables.get(tableId);
if (table == null) {
while (true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ private void buildForDividedMode() {
}
}
}
} catch (Catalog.DatabaseNotExistException | Catalog.TableNotExistException | Catalog.TableNoPermissionException e) {
} catch (Catalog.DatabaseNotExistException
| Catalog.TableNotExistException
| Catalog.TableNoPermissionException e) {
throw new RuntimeException(e);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public void processElement(StreamRecord<CloneFileInfo> streamRecord) throws Exce
try {
return pathOfTable(
sourceCatalog.getTable(Identifier.fromString(key)));
} catch (Catalog.TableNotExistException | Catalog.TableNoPermissionException e) {
} catch (Catalog.TableNotExistException
| Catalog.TableNoPermissionException e) {
throw new RuntimeException(e);
}
});
Expand All @@ -93,7 +94,8 @@ public void processElement(StreamRecord<CloneFileInfo> streamRecord) throws Exce
try {
return pathOfTable(
targetCatalog.getTable(Identifier.fromString(key)));
} catch (Catalog.TableNotExistException | Catalog.TableNoPermissionException e) {
} catch (Catalog.TableNotExistException
| Catalog.TableNoPermissionException e) {
throw new RuntimeException(e);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ private static Long getPartitionInfo(
PartitionEntry::lastFileCreationTime));
multiTablesPartitionInfo.put(tableIdentifier, partitionInfo);
} catch (Catalog.TableNotExistException e) {
LOGGER.error(String.format("table: %s not found.", tableIdentifier.getFullName()));
LOGGER.error("table: {} not found.", tableIdentifier.getFullName());
} catch (Catalog.TableNoPermissionException e) {
LOGGER.error(String.format("table: %s no permission.", tableIdentifier.getFullName()));
LOGGER.error("table: {} no permission.", tableIdentifier.getFullName());
}
}
return partitionInfo.get(partition);
Expand Down

0 comments on commit ba690d6

Please sign in to comment.