Skip to content

Commit

Permalink
[MINOR] fixing validate async operations to poll completed clean inst…
Browse files Browse the repository at this point in the history
…ances (apache#6814)
  • Loading branch information
nsivabalan authored and voonhous committed Oct 7, 2022
1 parent 7bebf34 commit 2d51bc7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ public void execute(ExecutionContext executionContext, int curItrCount) throws E

HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setBasePath(executionContext.getHoodieTestSuiteWriter().getCfg().targetBasePath)
.setConf(executionContext.getJsc().hadoopConfiguration()).build();
Option<HoodieInstant> latestCleanInstant = metaClient.getActiveTimeline().filter(instant -> instant.getAction().equals(HoodieTimeline.CLEAN_ACTION)).lastInstant();
Option<HoodieInstant> latestCleanInstant = metaClient.getActiveTimeline().getCleanerTimeline().filterCompletedInstants().lastInstant();
if (latestCleanInstant.isPresent()) {
log.warn("Latest clean commit " + latestCleanInstant.get());
HoodieCleanMetadata cleanMetadata = CleanerUtils.getCleanerMetadata(metaClient, latestCleanInstant.get());
Expand Down

0 comments on commit 2d51bc7

Please sign in to comment.