You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "David McLaughlin (JIRA)" <ji...@apache.org> on 2014/06/02 23:35:03 UTC
[jira] [Comment Edited] (AURORA-495) UI should always show a
pending reason
[ https://issues.apache.org/jira/browse/AURORA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015925#comment-14015925 ]
David McLaughlin edited comment on AURORA-495 at 6/2/14 9:34 PM:
-----------------------------------------------------------------
This is the logic from the old UI that sets pending reason:
{code}
if (scheduledTask.getStatus() == PENDING) {
String pendingReason;
Set<Veto> vetoes = nearestFit.getNearestFit(task.getTaskId());
if (vetoes.isEmpty()) {
pendingReason = "No matching hosts.";
} else {
pendingReason = Joiner.on(",").join(Iterables.transform(vetoes, GET_REASON));
}
builder.put("pendingReason", pendingReason);
}
{code}
Taken from https://github.com/apache/incubator-aurora/blob/48a52baf4cc295fde89030a760812011fafbd86a/src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java
was (Author: davmclau):
This is the logic from the old UI that sets pending reason:
{code}
if (scheduledTask.getStatus() == PENDING) {
String pendingReason;
Set<Veto> vetoes = nearestFit.getNearestFit(task.getTaskId());
if (vetoes.isEmpty()) {
pendingReason = "No matching hosts.";
} else {
pendingReason = Joiner.on(",").join(Iterables.transform(vetoes, GET_REASON));
}
builder.put("pendingReason", pendingReason);
}
{code}
> UI should always show a pending reason
> --------------------------------------
>
> Key: AURORA-495
> URL: https://issues.apache.org/jira/browse/AURORA-495
> Project: Aurora
> Issue Type: Bug
> Components: Scheduler, UI
> Reporter: Suman Karumuri
> Assignee: David McLaughlin
> Priority: Critical
>
> The pending reason in the UI is empty which leaves the user confused. The scheduler should be updated to always show a reason for pending the task.
--
This message was sent by Atlassian JIRA
(v6.2#6252)