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 05F33200C26 for ; Sat, 11 Feb 2017 01:35:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 047B6160B6C; Sat, 11 Feb 2017 00:35:48 +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 4E6BB160B5C for ; Sat, 11 Feb 2017 01:35:47 +0100 (CET) Received: (qmail 12534 invoked by uid 500); 11 Feb 2017 00:35:46 -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 12522 invoked by uid 99); 11 Feb 2017 00:35:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2017 00:35:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id EC1821A0281 for ; Sat, 11 Feb 2017 00:35:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Pm2XfGf_u8kb for ; Sat, 11 Feb 2017 00:35:45 +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 926C75F576 for ; Sat, 11 Feb 2017 00:35:44 +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 AED1DE0526 for ; Sat, 11 Feb 2017 00:35:42 +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 0BF3121D6D for ; Sat, 11 Feb 2017 00:35:42 +0000 (UTC) Date: Sat, 11 Feb 2017 00:35:42 +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: Sat, 11 Feb 2017 00:35:48 -0000 [ https://issues.apache.org/jira/browse/YARN-6125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862078#comment-15862078 ] Andras Piros edited comment on YARN-6125 at 2/11/17 12:34 AM: -------------------------------------------------------------- [~templedf] latest code review comment responses: # log and exception messages: ## done, except for {{"chars"}} ## done ## done ## see next one # decided to use only {{append()}} and remove {{appendToDiagnosticsSafely()}} # as we don't want to count message header and ellipses against {{limit}}, I'd stick to the current implementation as the header is of variable length. {{checkAndCut()}} can remain as simple as check whether {{messages}} would extend beyond {{limit}} or not # done # done. My original consideration was that we should distinguish between the current length (after truncate without header and ellipsis) and the total length. Anyway, renamed # switched to {{"chars"}} also for docs and all messages was (Author: andras.piros): [~templedf] latest code review comment responses: # log and exception messages: ## done, except for {{"chars"}} ## done ## done ## see next one # decided to use only {{append()}} and remove {{appendToDiagnosticsSafely()}} # as we don't want to count message header and ellipses, I'd stick to the current implementation as the header is of variable length. {{checkAndCut()}} can remain as simple as check whether {{messages}} would extend beyond {{limit}} or not # done # done. My original consideration was that we should distinguish between the current length (after truncate without header and ellipsis) and the total length. Anyway, renamed # switched to {{"chars"}} also for docs and all messages > 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, YARN-6125.003.patch, YARN-6125.004.patch, YARN-6125.005.patch, YARN-6125.006.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