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 378C2200AE2 for ; Fri, 27 May 2016 23:36:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 34E03160A10; Fri, 27 May 2016 21:36:15 +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 7C5DC160A38 for ; Fri, 27 May 2016 23:36:14 +0200 (CEST) Received: (qmail 96624 invoked by uid 500); 27 May 2016 21:36:13 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 96401 invoked by uid 99); 27 May 2016 21:36:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2016 21:36:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3E3282C1F56 for ; Fri, 27 May 2016 21:36:13 +0000 (UTC) Date: Fri, 27 May 2016 21:36:13 +0000 (UTC) From: "Li Lu (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5169) most YARN events have timestamp of -1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 27 May 2016 21:36:15 -0000 [ https://issues.apache.org/jira/browse/YARN-5169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15304844#comment-15304844 ] Li Lu commented on YARN-5169: ----------------------------- Thanks [~sjlee0]! bq. Are event timestamps for consumption by the timeline service exclusively? Or should we expect them to have reasonable timestamps more generally? Right now timeline service may be the only user of this data, but providing this information would certainly be helpful to other components. bq. And also is the rationale of not generating the timestamp by default (being too expensive) still a valid conclusion? This is also my concern. For NMs, my hunch is we have much less events generated, therefore performance problem should be less severe? > most YARN events have timestamp of -1 > ------------------------------------- > > Key: YARN-5169 > URL: https://issues.apache.org/jira/browse/YARN-5169 > Project: Hadoop YARN > Issue Type: Bug > Components: yarn > Affects Versions: 2.7.2 > Reporter: Sangjin Lee > > Most of the YARN events (subclasses of {{AbstractEvent}}) have timestamp of -1. {{AbstractEvent}} have two constructors, one that initializes the timestamp to -1 and the other to the caller-provided value. But most events use the former (thus timestamp of -1). > Some of the more common events, including {{ApplicationEvent}}, {{ContainerEvent}}, {{JobEvent}}, etc. do not set the timestamp. > The rationale for this behavior seems to be mentioned in {{AbstractEvent}}: > {code} > // use this if you DON'T care about the timestamp > public AbstractEvent(TYPE type) { > this.type = type; > // We're not generating a real timestamp here. It's too expensive. > timestamp = -1L; > } > {code} > This absence of the timestamp isn't really visible in many cases and therefore may have gone unnoticed, but the timeline service exposes this problem very visibly. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org