Github user uce commented on a diff in the pull request:

    https://github.com/apache/flink/pull/896#discussion_r34504410
  
    --- Diff: 
flink-runtime/src/main/scala/org/apache/flink/runtime/jobmanager/JobManager.scala
 ---
    @@ -400,13 +398,22 @@ class JobManager(protected val flinkConfiguration: 
Configuration,
           import scala.collection.JavaConverters._
           sender ! 
RegisteredTaskManagers(instanceManager.getAllRegisteredInstances.asScala)
     
    -    case Heartbeat(instanceID, metricsReport) =>
    -      try {
    -        log.debug(s"Received hearbeat message from $instanceID.")
    -        instanceManager.reportHeartBeat(instanceID, metricsReport)
    -      } catch {
    -        case t: Throwable => log.error(s"Could not report heart beat from 
${sender().path}.", t)
    -      }
    +    case Heartbeat(instanceID, metricsReport, accumulators) =>
    +      log.debug(s"Received hearbeat message from $instanceID.")
    +
    +      Future {
    +        accumulators foreach {
    +          case accumulators =>
    +              currentJobs.get(accumulators.getJobID) match {
    --- End diff --
    
    The map of current jobs is not thread-safe. I think there could be corner 
cases where an error is reported although nothing wrong happend.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to