You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/12/28 11:58:15 UTC

[GitHub] [flink] X-czh commented on a diff in pull request #21569: [FLINK-30517][log]Decrease log output interval while waiting for YARN…

X-czh commented on code in PR #21569:
URL: https://github.com/apache/flink/pull/21569#discussion_r1058296234


##########
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java:
##########
@@ -1264,9 +1265,11 @@ private ApplicationReport startAppMaster(
                     if (appState != lastAppState) {
                         LOG.info("Deploying cluster, current state " + appState);
                     }
-                    if (System.currentTimeMillis() - startTime > 60000) {
+                    if (System.currentTimeMillis() - lastLogTime > 60000) {
+                        lastLogTime = System.currentTimeMillis();
                         LOG.info(
-                                "Deployment took more than 60 seconds. Please check if the requested resources are available in the YARN cluster");

Review Comment:
   lastLogTime is in millisesecond, but the logging time is in seconds



-- 
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: issues-unsubscribe@flink.apache.org

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