bvaradar commented on a change in pull request #921: [MINOR] Limit sync 
frequency
URL: https://github.com/apache/incubator-hudi/pull/921#discussion_r327427393
 
 

 ##########
 File path: 
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/HoodieDeltaStreamer.java
 ##########
 @@ -392,6 +397,12 @@ public DeltaSync getDeltaSync() {
                     scheduledCompactionInstant.get()));
                 
asyncCompactService.waitTillPendingCompactionsReducesTo(cfg.maxPendingCompactions);
               }
+              long toSleepMs = cfg.minSyncIntervalSecond * 1000 - 
(System.currentTimeMillis() - start);
+              if (toSleepMs > 0) {
+                log.info("last sync ran less than min sync interval: " + 
cfg.minSyncIntervalSecond + " s, sleep: "
 
 Review comment:
   nit: last => Last 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to