Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezhang committed Apr 19, 2022
1 parent e220028 commit 6da5a93
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,12 @@ private boolean checkMetadataTableIsAvailable() {
.build();
int finishedInstants = mdtMetaClient.getActiveTimeline().filterCompletedInstants().countInstants();
if (finishedInstants == 0) {
throw new HoodieValidationException("There is no completed instant for metadata table.");
if (metaClient.getActiveTimeline().filterCompletedInstants().countInstants() == 0) {
LOG.info("There is no completed instant both in metadata table and corresponding data table.");
return false;
} else {
throw new HoodieValidationException("There is no completed instant for metadata table.");
}
}
return true;
} catch (TableNotFoundException tbe) {
Expand Down

0 comments on commit 6da5a93

Please sign in to comment.