Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-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 B809410383 for ; Tue, 17 Feb 2015 21:10:11 +0000 (UTC) Received: (qmail 44873 invoked by uid 500); 17 Feb 2015 21:10:11 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 44840 invoked by uid 500); 17 Feb 2015 21:10:11 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 44831 invoked by uid 99); 17 Feb 2015 21:10:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 21:10:11 +0000 Date: Tue, 17 Feb 2015 21:10:11 +0000 (UTC) From: "Dominic Hamon (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-1708) Using the wrong resource "name" should report a better error. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-1708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324890#comment-14324890 ] Dominic Hamon commented on MESOS-1708: -------------------------------------- I think the spirit of the issue is that we should differentiate between a request for a resource type that isn't known (due to a typo, or something) and a request for a resource type that is known but the amount of which can't be satisfied. The former doesn't exist but i think could be added by iterating through the resources in 'total' and checking that the name exists in the 'offered' Resources. Having said that, I think the error 'Task uses more resources' that contains the stringified resources for both offered and total should be enough to debug the issue. Do you think it's worth the extra validation check? > Using the wrong resource "name" should report a better error. > ------------------------------------------------------------- > > Key: MESOS-1708 > URL: https://issues.apache.org/jira/browse/MESOS-1708 > Project: Mesos > Issue Type: Bug > Components: framework, master > Reporter: Benjamin Hindman > Assignee: Dominic Hamon > Labels: newbie, twitter > > If a scheduler launches a task using resources the master doesn't know about the task validator causes the task to fail but the error message is not very helpful. -- This message was sent by Atlassian JIRA (v6.3.4#6332)