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 C738C200B40 for ; Thu, 2 Jun 2016 07:18:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C63AD160A4D; Thu, 2 Jun 2016 05:18:04 +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 1BD73160A4C for ; Thu, 2 Jun 2016 07:18:03 +0200 (CEST) Received: (qmail 81548 invoked by uid 500); 2 Jun 2016 05:18:03 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 81537 invoked by uid 99); 2 Jun 2016 05:18:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2016 05:18:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9492118050F for ; Thu, 2 Jun 2016 05:18:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id E5MRo8CB0wgu for ; Thu, 2 Jun 2016 05:18:01 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 6216A5FAC3 for ; Thu, 2 Jun 2016 05:18:00 +0000 (UTC) Received: (qmail 81189 invoked by uid 99); 2 Jun 2016 05:17:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2016 05:17:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4E68E2C033A for ; Thu, 2 Jun 2016 05:17:59 +0000 (UTC) Date: Thu, 2 Jun 2016 05:17:59 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@apex.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (APEXCORE-466) Improve logging from the *Agent.java files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Jun 2016 05:18:05 -0000 [ https://issues.apache.org/jira/browse/APEXCORE-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15311756#comment-15311756 ] ASF GitHub Bot commented on APEXCORE-466: ----------------------------------------- Github user gauravgopi123 commented on a diff in the pull request: https://github.com/apache/incubator-apex-core/pull/339#discussion_r65485278 --- Diff: engine/src/main/java/com/datatorrent/stram/client/EventsAgent.java --- @@ -125,7 +125,7 @@ protected EventsIndexLine parseIndexLine(String line) throws JSONException totalNumEvents += indexLine.numEvents; } } catch (Exception ex) { - LOG.warn("Got exception when reading events", ex); + LOG.warn("Cannot read events for {}: {}", appId, ex.toString()); --- End diff -- @davidyan74 : Do you need to do ex.toString()? > Improve logging from the *Agent.java files > ------------------------------------------ > > Key: APEXCORE-466 > URL: https://issues.apache.org/jira/browse/APEXCORE-466 > Project: Apache Apex Core > Issue Type: Improvement > Reporter: David Yan > Assignee: David Yan > > Currently we are getting stack traces logging that actually do not necessarily indicate an error. For example: > {code} > 2016-05-20 11:56:22,859 WARN com.datatorrent.stram.client.EventsAgent: Got exception when reading events > java.io.FileNotFoundException: File does not exist: /user/david/datatorrent/apps/application_1462948052533_0204/events/index.txt > at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:66) > at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:56) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocationsUpdateTimes(FSNamesystem.java:1932) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocationsInt(FSNamesystem.java:1873) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1853) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1825) > at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlockLocations(NameNodeRpcServer.java:559) > at org.apache.hadoop.hdfs.server.namenode.AuthorizationProviderProxyClientProtocol.getBlockLocations(AuthorizationProviderProxyClientProtocol.j > ava:87) > at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getBlockLocations(ClientNamenodeProtocolServerSideTranslatorP > B.java:363) > at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos. > java) > at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:619) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1060) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2044) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2040) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2038) > {code} > This stack trace only indicates that no events have been logged yet for the application. > We need to reduce this kind of logging to prevent false alarms to the user. -- This message was sent by Atlassian JIRA (v6.3.4#6332)