Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-19051

Exception message should be reserved in log When the Job Manager failed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Not a Priority
    • Resolution: Unresolved
    • 1.11.1, 1.12.0
    • None
    • Runtime / Task
    • None

    Description

      protected void closeJobManagerConnection(JobID jobId, Exception cause) {
         JobManagerRegistration jobManagerRegistration = jobManagerRegistrations.remove(jobId);
      
         if (jobManagerRegistration != null) {
            final ResourceID jobManagerResourceId = jobManagerRegistration.getJobManagerResourceID();
            final JobMasterGateway jobMasterGateway = jobManagerRegistration.getJobManagerGateway();
            final JobMasterId jobMasterId = jobManagerRegistration.getJobMasterId();
      
            log.info("Disconnect job manager {}@{} for job {} from the resource manager.",
               jobMasterId,
               jobMasterGateway.getAddress(),
               jobId);
      
            jobManagerHeartbeatManager.unmonitorTarget(jobManagerResourceId);
      
            jmResourceIdRegistrations.remove(jobManagerResourceId);
      
            // tell the job manager about the disconnect
            jobMasterGateway.disconnectResourceManager(getFencingToken(), cause);
         } else {
            log.debug("There was no registered job manager for job {}.", jobId);
         }
      

      Exception message should be reserved in log.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ZhuShang zhuxiaoshang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: