Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-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 97C4A18067 for ; Fri, 18 Sep 2015 14:50:59 +0000 (UTC) Received: (qmail 20226 invoked by uid 500); 18 Sep 2015 14:50:59 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 20194 invoked by uid 500); 18 Sep 2015 14:50:59 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 20179 invoked by uid 99); 18 Sep 2015 14:50:59 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2015 14:50:59 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 6B8431D9C34; Fri, 18 Sep 2015 14:50:57 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7948223373288547049==" MIME-Version: 1.0 Subject: Re: Review Request 38492: RU - Skipping failed task caused remaining pending tasks to be ABORTED From: "Sumit Mohanty" To: "Alejandro Fernandez" , "Nate Cole" Cc: "Jonathan Hurley" , "Sumit Mohanty" , "Ambari" Date: Fri, 18 Sep 2015 14:50:57 -0000 Message-ID: <20150918145057.9550.64584@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Sumit Mohanty" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/38492/ X-Sender: "Sumit Mohanty" References: <20150918144134.3773.6772@reviews.apache.org> In-Reply-To: <20150918144134.3773.6772@reviews.apache.org> Reply-To: "Sumit Mohanty" X-ReviewRequest-Repository: ambari --===============7948223373288547049== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/38492/#review99531 ----------------------------------------------------------- ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java (line 304) How do we mark a stage to be skippable? Is it explicit based on type of operations (e.g. Install Packages)? There is another JIRA where we need this capability. So I am wondering - Sumit Mohanty On Sept. 18, 2015, 2:41 p.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/38492/ > ----------------------------------------------------------- > > (Updated Sept. 18, 2015, 2:41 p.m.) > > > Review request for Ambari, Alejandro Fernandez and Nate Cole. > > > Bugs: AMBARI-13145 > https://issues.apache.org/jira/browse/AMBARI-13145 > > > Repository: ambari > > > Description > ------- > > Aborting a failed task during an upgrade causes the entire upgrade request to become ABORTED. The ActionScheduler has logic which will abort an entire request if the command's success factor was not met. This logic also needs to take into account skippable stages which will be marked as COMPLETED even with failed tasks. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java 7d93638 > ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java 31356bb > > Diff: https://reviews.apache.org/r/38492/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Jonathan Hurley > > --===============7948223373288547049==--