topologyid, task);
if (isTaskDead == true) {
LOG.info("Found " + topologyid + ",taskid:" + task
+ " is dead");
ResourceWorkerSlot resource = null;
if (assignment != null)
resource = assignment.getWorkerByTaskId(task);
if (resource != null) {
Date now = new Date();
String nowStr = TimeFormat.getSecond(now);
String errorInfo = "Task-" + task + " is dead on "
+ resource.getHostname() + ":"
+ resource.getPort() + ", " + nowStr;
LOG.info(errorInfo);
clusterState.report_task_error(topologyid, task, errorInfo);
}
needReassign = true;
}