Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C2FF17371 for ; Sat, 4 Apr 2015 00:33:39 +0000 (UTC) Received: (qmail 57569 invoked by uid 500); 4 Apr 2015 00:33:34 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 57524 invoked by uid 500); 4 Apr 2015 00:33:34 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 57513 invoked by uid 99); 4 Apr 2015 00:33:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2015 00:33:34 +0000 Date: Sat, 4 Apr 2015 00:33:33 +0000 (UTC) From: "Junping Du (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-402) Dispatcher warn message is too late MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395408#comment-14395408 ] Junping Du commented on YARN-402: --------------------------------- Forget that the queue can be constructed with other queue type other than LinkedBlockingQueue. So may be it could be the smaller value within half of queue size (if queue is not LinkedBlockingQueue by default) and 1000* 1000 (estimated as above). > Dispatcher warn message is too late > ----------------------------------- > > Key: YARN-402 > URL: https://issues.apache.org/jira/browse/YARN-402 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Lohit Vijayarenu > Priority: Minor > > AsyncDispatcher throws out Warn when capacity remaining is less than 1000 > {noformat} > if (remCapacity < 1000) { > LOG.warn("Very low remaining capacity in the event-queue: " > + remCapacity); > } > {noformat} > What would be useful is to warn much before that, may be half full instead of when queue is completely full. I see that eventQueue capacity is int value. So, if one warn's queue has only 1000 capacity left, then service definitely has serious problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)