code: private void updateTaskStatuses(TaskTrackerStatus status) {
      TaskTrackerInfo trackerInfo = TaskTrackerInfo.fromStatus(status);
      String trackerName = status.getTrackerName();
      for (TaskStatus report : status.getTaskReports()) {
        // Ensure that every report has information about task tracker
        report.setTaskTracker(trackerName);
        LOG.debug("Task status report: " + report);
        updateTaskStatus(trackerInfo, report);
        // Take any actions outside updateTaskStatus()
        setupReduceRequests(job);
        processFetchFailures(report);
      }
    }
docs: Updates job and tasks state according to report from TaskTracker
  @param status TaskTrackerStatus