Return-Path: X-Original-To: apmail-tez-commits-archive@minotaur.apache.org Delivered-To: apmail-tez-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E47D117F2 for ; Fri, 20 Jun 2014 22:36:10 +0000 (UTC) Received: (qmail 37500 invoked by uid 500); 20 Jun 2014 22:36:10 -0000 Delivered-To: apmail-tez-commits-archive@tez.apache.org Received: (qmail 37467 invoked by uid 500); 20 Jun 2014 22:36:10 -0000 Mailing-List: contact commits-help@tez.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.incubator.apache.org Delivered-To: mailing list commits@tez.incubator.apache.org Received: (qmail 37456 invoked by uid 99); 20 Jun 2014 22:36:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 22:36:10 +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; Fri, 20 Jun 2014 22:36:06 +0000 Received: (qmail 32987 invoked by uid 99); 20 Jun 2014 22:35:41 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 22:35:41 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 35FC0989436; Fri, 20 Jun 2014 22:35:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sseth@apache.org To: commits@tez.incubator.apache.org Date: Fri, 20 Jun 2014 22:35:56 -0000 Message-Id: <858dd29883844ce5b07d1f3665fa732a@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [18/23] git commit: TEZ-1014. Add a log message to indicate last AM attempt. (hitesh) X-Virus-Checked: Checked by ClamAV on apache.org TEZ-1014. Add a log message to indicate last AM attempt. (hitesh) Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/66626053 Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/66626053 Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/66626053 Branch: refs/heads/branch-0.4.1-incubating Commit: 6662605342e17335c31ad9177017d898e13f532d Parents: b82d5f3 Author: Hitesh Shah Authored: Thu Apr 3 17:04:07 2014 -0700 Committer: Siddharth Seth Committed: Fri Jun 20 15:34:45 2014 -0700 ---------------------------------------------------------------------- tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/66626053/tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java ---------------------------------------------------------------------- diff --git a/tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java b/tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java index 8d1fc1c..94857b4 100644 --- a/tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java +++ b/tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java @@ -350,6 +350,9 @@ public class DAGAppMaster extends AbstractService { clientRpcServer, dispatcher.getEventHandler(), containerSignatureMatcher); addIfService(taskSchedulerEventHandler, true); if (isLastAMRetry) { + LOG.info("AM will unregister as this is the last attempt" + + ", currentAttempt=" + appAttemptID.getAttemptId() + + ", maxAttempts=" + maxAppAttempts); this.taskSchedulerEventHandler.setShouldUnregisterFlag(); } @@ -448,6 +451,7 @@ public class DAGAppMaster extends AbstractService { DAGAppMasterEventDAGFinished finishEvt = (DAGAppMasterEventDAGFinished) event; if (!isSession) { + LOG.info("Not a session, AM will unregister as DAG has completed"); this.taskSchedulerEventHandler.setShouldUnregisterFlag(); _updateLoggers(currentDAG, "_post"); setStateOnDAGCompletion();