Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5F2C9200BAD for ; Tue, 11 Oct 2016 03:07:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5D6EA160AF1; Tue, 11 Oct 2016 01:07:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CA657160AE1 for ; Tue, 11 Oct 2016 03:07:21 +0200 (CEST) Received: (qmail 937 invoked by uid 500); 11 Oct 2016 01:07:21 -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 922 invoked by uid 99); 11 Oct 2016 01:07:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 01:07:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DCBBA2C0059 for ; Tue, 11 Oct 2016 01:07:20 +0000 (UTC) Date: Tue, 11 Oct 2016 01:07:20 +0000 (UTC) From: "Nahappan Somasundaram (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-18502) Logging of ambari agent scheduling activities in debug mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Oct 2016 01:07:22 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15564069#comment-15564069 ] Nahappan Somasundaram commented on AMBARI-18502: ------------------------------------------------ [~rabaner] Change looks good. A couple of nit-picks: {code} logger.debug("Scheduler submitting job %s to run",job.name) // add a space before job.name logger.debug('Worker thread starting job %s',args[0]) // add a space before args[0] {code} > Logging of ambari agent scheduling activities in debug mode > ----------------------------------------------------------- > > Key: AMBARI-18502 > URL: https://issues.apache.org/jira/browse/AMBARI-18502 > Project: Ambari > Issue Type: Bug > Components: ambari-agent > Affects Versions: trunk > Reporter: Ranjan Banerjee > Priority: Minor > Labels: ambari-agent > Fix For: trunk > > Attachments: AMBARI-18502.patch > > > We find lots of stale alerts in Ambari. On digging deeper from the Ambari-agent logs it is found that there were many services that missed the triggering window, but no insight as to why it is missed. The aim of this is to add some debug logs on two steps primarily: > 1)When the scheduler iterates through the jobstore and decides it is time to schedule the job. > 2)The threadpool, being forked and executing the callback function -- This message was sent by Atlassian JIRA (v6.3.4#6332)