Return-Path: X-Original-To: apmail-aurora-issues-archive@minotaur.apache.org Delivered-To: apmail-aurora-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 515D810609 for ; Mon, 2 Jun 2014 21:35:24 +0000 (UTC) Received: (qmail 37846 invoked by uid 500); 2 Jun 2014 21:35:24 -0000 Delivered-To: apmail-aurora-issues-archive@aurora.apache.org Received: (qmail 37815 invoked by uid 500); 2 Jun 2014 21:35:24 -0000 Mailing-List: contact issues-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list issues@aurora.incubator.apache.org Received: (qmail 37804 invoked by uid 99); 2 Jun 2014 21:35:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 21:35:24 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Jun 2014 21:35:23 +0000 Received: (qmail 37460 invoked by uid 99); 2 Jun 2014 21:35:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 21:35:03 +0000 Date: Mon, 2 Jun 2014 21:35:03 +0000 (UTC) From: "David McLaughlin (JIRA)" To: issues@aurora.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (AURORA-495) UI should always show a pending reason MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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 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 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)