danny0405 commented on code in PR #6566:
URL: https://github.com/apache/hudi/pull/6566#discussion_r962089036


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/compact/HoodieFlinkCompactor.java:
##########
@@ -211,28 +214,35 @@ private void compact() throws Exception {
 
       // checks the compaction plan and do compaction.
       if (cfg.schedule) {
-        Option<String> compactionInstantTimeOption = 
CompactionUtil.getCompactionInstantTime(metaClient);
+        Option<String> compactionInstantTimeOption = 
CompactionUtil.getCompactionInstantTime(
+            metaClient);
         if (compactionInstantTimeOption.isPresent()) {
           boolean scheduled = 
writeClient.scheduleCompactionAtInstant(compactionInstantTimeOption.get(), 
Option.empty());
           if (!scheduled) {
             // do nothing.
             LOG.info("No compaction plan for this job ");
+            executeDummyPipeline();
             return;
           }
           table.getMetaClient().reloadActiveTimeline();
         }
       }
 
       // fetch the instant based on the configured execution sequence
-      HoodieTimeline pendingCompactionTimeline = 
table.getActiveTimeline().filterPendingCompactionTimeline();
-      List<HoodieInstant> requested = 
CompactionPlanStrategies.getStrategy(cfg).select(pendingCompactionTimeline);
+      HoodieTimeline pendingCompactionTimeline = table.getActiveTimeline()
+          .filterPendingCompactionTimeline();
+      List<HoodieInstant> requested = CompactionPlanStrategies.getStrategy(cfg)

Review Comment:
   Revert all the unnecessary change.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to