Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C80817D98 for ; Fri, 10 Apr 2015 11:18:38 +0000 (UTC) Received: (qmail 43465 invoked by uid 500); 10 Apr 2015 11:18:32 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 43389 invoked by uid 500); 10 Apr 2015 11:18:32 -0000 Mailing-List: contact dev-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 dev@mesos.apache.org Received: (qmail 43378 invoked by uid 99); 10 Apr 2015 11:18:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 11:18:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex@mesosphere.io designates 209.85.215.70 as permitted sender) Received: from [209.85.215.70] (HELO mail-la0-f70.google.com) (209.85.215.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 11:18:28 +0000 Received: by lamp14 with SMTP id p14so3409537lam.3 for ; Fri, 10 Apr 2015 04:18:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=tCvViZ4que19ZL7W3sr9cm8TWzRhg42hdx54rDzm7j8=; b=FViy90tRl7XPRgRI9cOL8YBbaHjmnfnYf+778XlKOa2jv6PhAT+fLZT+G4ihKt2Ns9 hbzAfN3A8BSnpft/mRC9j6K48VZLeYnZxtfKFlZH492lTYXefSXXSJsnNmE6CVT6oIc+ RYwXz6/0mEztW1jOnfsK9DxjhunHk1vgCO0B4q/uGRTsPPl60VHq6nUVRyoD1DpfjBWC Z49ErA5nDe6O4Fe77jmAEGhzqcBBi5kcCrWQURptV/QRIEcrvlFUw6aUFGL8REyDSX0P /dD2Wyrv3f0syzzB5QoKElXwRfuBrdCTAt02K3lO8T1fXlR0PazVegAWhay5VH34uEhd nYDQ== X-Gm-Message-State: ALoCoQkZwGqEei3yt8HIfoL6+eS648KSh7spsn1g3nKa1HB8OlNHDT03mlIXA4a5Do1kCAUGHXnj MIME-Version: 1.0 X-Received: by 10.180.91.137 with SMTP id ce9mr570389wib.76.1428664686780; Fri, 10 Apr 2015 04:18:06 -0700 (PDT) Received: by 10.194.175.134 with HTTP; Fri, 10 Apr 2015 04:18:06 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Apr 2015 13:18:06 +0200 Message-ID: Subject: Re: Slave exit codes (MESOS-2599) From: Alex Rukletsov To: dev Content-Type: multipart/alternative; boundary=f46d043749c528b77505135cebf4 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043749c528b77505135cebf4 Content-Type: text/plain; charset=UTF-8 I like the idea. Do you have a list (or want to come up with one) of what conditions do you want to intercept? On Fri, Apr 10, 2015 at 1:54 AM, Paul Brett wrote: > Currently, whenever an error occurs we have the slave exit with a return > code of 1. I propose to allocate separate return codes to each exit > condition to help external scripts differentiate between failures. It is > possible that this will break external tools if they test for a return code > of 1 rather than the more usual test for not equal to zero. > > Thoughts? > > -- Paul Brett > --f46d043749c528b77505135cebf4--