public HostRoleCommandEntity getFailedTask() {
    return failedTask;
  }
Get the failed task if it exists.
@return The failed task if it exists, otherwise null.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeSummary.java