You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/10/10 15:35:05 UTC

[GitHub] [dolphinscheduler] ruanwenjun commented on a diff in pull request #12219: [fix#12170] If the worker's clock early than master node, will ignore dispatch time.

ruanwenjun commented on code in PR #12219:
URL: https://github.com/apache/dolphinscheduler/pull/12219#discussion_r991420500


##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/DateUtils.java:
##########
@@ -575,6 +575,12 @@ public static long getRemainTime(Date baseTime, long intervalSeconds) {
             return 0;
         }
         long usedTime = (System.currentTimeMillis() - baseTime.getTime()) / 1000;
+        // ignore worker's clock later than master nodes.

Review Comment:
   It's better don't add this in this method, this is Utils. And I don't think we need to deal with this, we only need to announce the clock should sync in master/worker, since this change don't solve the problem when the clock is not sync.



-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org