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 0D84A200C0E for ; Wed, 1 Feb 2017 22:41:57 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0AB40160B66; Wed, 1 Feb 2017 21:41:57 +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 5C0A7160B41 for ; Wed, 1 Feb 2017 22:41:56 +0100 (CET) Received: (qmail 50478 invoked by uid 500); 1 Feb 2017 21:41:55 -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 50467 invoked by uid 99); 1 Feb 2017 21:41:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2017 21:41:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1E24EC0115 for ; Wed, 1 Feb 2017 21:41:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id t1yo5F8t-Z32 for ; Wed, 1 Feb 2017 21:41:54 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id AACB15F613 for ; Wed, 1 Feb 2017 21:41:53 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8F39EE0536 for ; Wed, 1 Feb 2017 21:41:52 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DB94525290 for ; Wed, 1 Feb 2017 21:41:51 +0000 (UTC) Date: Wed, 1 Feb 2017 21:41:51 +0000 (UTC) From: "Andras Piros (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-6125) The application attempt's diagnostic message should have a maximum size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Feb 2017 21:41:57 -0000 [ https://issues.apache.org/jira/browse/YARN-6125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15848968#comment-15848968 ] Andras Piros edited comment on YARN-6125 at 2/1/17 9:40 PM: ------------------------------------------------------------ [~templedf] thanks for the review! My thoughts on the comments: # done # done # the {{pom.xml}} dependency reordering was necessary in order to get {{ExpectedException}} working. There are other parts of {{hadoop}} that employ the same thing (notably, {{hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-nodemanager/pom.xml}}), essentially to make sure the correct Hamcrest version is on the classpath. One day switching to Mockito 2.x [*should solve this problem*|https://github.com/mockito/mockito/issues/324] # {{Lists.newLinkedList()}} comes from Guava. But nevermind, changed to use {{new LinkedList<>()}} # done # done # done # I like {{final}} stuff, please specify where I should make variables / fields non-{{final}} # WIP # WIP # done # done # done # done was (Author: andras.piros): [~templedf] thanks for the review! My thoughts on the comments: # done # done # the {{pom.xml}} dependency reordering was necessary in order to get {{ExpectedException}} working. There are other parts of {{hadoop}} that employ the same thing (notably, {{hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-nodemanager/pom.xml}}), essentially to make sure the correct Hamcrest version is on the classpath. One day switching to Mockito 2.x [*should solve this problem*|https://github.com/mockito/mockito/issues/324] # {{Lists.newLinkedList()}} comes from Guava. But nevermind, changed to use {{new LinkedList{}()}} # done # done # done # I like {{final}} stuff, please specify where I should make variables / fields non-{{final}} # WIP # WIP # done # done # done # done > The application attempt's diagnostic message should have a maximum size > ----------------------------------------------------------------------- > > Key: YARN-6125 > URL: https://issues.apache.org/jira/browse/YARN-6125 > Project: Hadoop YARN > Issue Type: Improvement > Components: resourcemanager > Affects Versions: 2.7.0 > Reporter: Daniel Templeton > Assignee: Andras Piros > Priority: Critical > Fix For: 3.0.0-alpha3 > > Attachments: YARN-6125.000.patch, YARN-6125.001.patch, YARN-6125.002.patch > > > We've found through experience that the diagnostic message can grow unbounded. I've seen attempts that have diagnostic messages over 1MB. Since the message is stored in the state store, it's a bad idea to allow the message to grow unbounded. Instead, there should be a property that sets a maximum size on the message. > I suspect that some of the ZK state store issues we've seen in the past were due to the size of the diagnostic messages and not to the size of the classpath, as is the current prevailing opinion. > An open question is how best to prune the message once it grows too large. Should we > # truncate the tail, > # truncate the head, > # truncate the middle, > # add another property to make the behavior selectable, or > # none of the above? -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org