tillrohrmann commented on a change in pull request #13978:
URL: https://github.com/apache/flink/pull/13978#discussion_r519643408



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java
##########
@@ -1212,23 +1208,13 @@ protected void onRegistrationFailure(final Throwable 
failure) {
 
        private class JobManagerJobStatusListener implements JobStatusListener {
 
-               private volatile boolean running = true;
-
                @Override
                public void jobStatusChanges(
                                final JobID jobId,
                                final JobStatus newJobStatus,
                                final long timestamp,
                                final Throwable error) {
-
-                       if (running) {
-                               // run in rpc thread to avoid concurrency
-                               runAsync(() -> jobStatusChanged(newJobStatus, 
timestamp, error));
-                       }
-               }
-
-               private void stop() {
-                       running = false;
+                       jobStatusChanged(newJobStatus, timestamp, error);

Review comment:
       True, I will remove it in the master.




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


Reply via email to