GJL commented on a change in pull request #10406: [FLINK-15045][runtime] Only 
log RestartStrategy in legacy scheduling mode
URL: https://github.com/apache/flink/pull/10406#discussion_r353609672
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/DefaultSchedulerFactory.java
 ##########
 @@ -77,6 +80,7 @@ public SchedulerNG createInstance(
                                jobMasterConfiguration,
                                jobGraph.isCheckpointingEnabled())
                        .create();
+               LOG.info("Using back off time strategy {} for {} ({}).", 
restartBackoffTimeStrategy, jobGraph.getName(), jobGraph.getJobID());
 
 Review comment:
   I introduced a log message here because it is closest to the object 
creation. Moreover, I prefer to [only have field 
assignments](https://www.yegor256.com/2015/05/07/ctors-must-be-code-free.html) 
in the constructor (note however, that this already does not hold in 
`DefaultScheduler`). Imo, another reasonable place to log the _scheduling 
configuration_ is in `startSchedulingInternal()`.

----------------------------------------------------------------
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