Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-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 E9C7B19983 for ; Wed, 13 Apr 2016 16:36:30 +0000 (UTC) Received: (qmail 79721 invoked by uid 500); 13 Apr 2016 16:36:25 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 79667 invoked by uid 500); 13 Apr 2016 16:36:25 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 79635 invoked by uid 99); 13 Apr 2016 16:36:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 16:36:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 938912C1F69 for ; Wed, 13 Apr 2016 16:36:25 +0000 (UTC) Date: Wed, 13 Apr 2016 16:36:25 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-15795) Parallel execution should only be allowed on commands that have auto retry enabled 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/AMBARI-15795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15239560#comment-15239560 ] Hudson commented on AMBARI-15795: --------------------------------- SUCCESS: Integrated in Ambari-branch-2.2 #629 (See [https://builds.apache.org/job/Ambari-branch-2.2/629/]) AMBARI-15795. Parallel execution should only be allowed on commands that (smohanty: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d8e0475808d6ab19ebcf032e582c7ef11a8b7593]) * ambari-agent/src/test/python/ambari_agent/TestActionQueue.py * ambari-agent/src/main/python/ambari_agent/ActionQueue.py > Parallel execution should only be allowed on commands that have auto retry enabled > ---------------------------------------------------------------------------------- > > Key: AMBARI-15795 > URL: https://issues.apache.org/jira/browse/AMBARI-15795 > Project: Ambari > Issue Type: Bug > Components: ambari-agent > Affects Versions: 2.2.2 > Reporter: Sumit Mohanty > Assignee: Sumit Mohanty > Fix For: 2.2.2 > > Attachments: AMBARI-15795.2.patch, AMBARI-15795.patch > > > Parallel execution of commands can result in failures if the commands process resources that are shared among the commands. For example, commands may check and delete the same file resource. Deleting a file resource that is already deleted is not a functional error but its does result in command failure. > Its not always possible to guarantee that stack scripts are written with guards that can check the failure and then determine if its harmless or not. Auto retry is a way to get around failures due to resource contention - think eventual success. Try all commands in parallel - then try only the failed ones. Each command is idempotent by definition so after a few retries all commands succeed. > When commands without auto-retry option are executed in parallel then there is no option to retry. This is not desirable. -- This message was sent by Atlassian JIRA (v6.3.4#6332)