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 A4D03200B57 for ; Fri, 22 Jul 2016 09:02:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A3AED160A5A; Fri, 22 Jul 2016 07:02:22 +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 1F8DD160A8E for ; Fri, 22 Jul 2016 09:02:21 +0200 (CEST) Received: (qmail 59093 invoked by uid 500); 22 Jul 2016 07:02:21 -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 59068 invoked by uid 99); 22 Jul 2016 07:02:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2016 07:02:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 015132C0D62 for ; Fri, 22 Jul 2016 07:02:21 +0000 (UTC) Date: Fri, 22 Jul 2016 07:02:21 +0000 (UTC) From: "sandflee (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5375) invoke MockRM#drainEvents implicitly in MockRM methods to reduce test failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 22 Jul 2016 07:02:22 -0000 [ https://issues.apache.org/jira/browse/YARN-5375?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15389= 058#comment-15389058 ]=20 sandflee commented on YARN-5375: -------------------------------- thanks for your suggestion, yes, It's more clean to use a MockRMStateStor= e, but there is a problem, many RMStateStore are created out of MockRM , = especially for RM restart test. Thought=EF=BC=9F > invoke MockRM#drainEvents implicitly in MockRM methods to reduce test fai= lures > -------------------------------------------------------------------------= ----- > > Key: YARN-5375 > URL: https://issues.apache.org/jira/browse/YARN-5375 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: sandflee > Assignee: sandflee > Attachments: YARN-5375.01.patch, YARN-5375.03.patch > > > seen many test failures related to RMApp/RMAppattempt comes to some state= but some event are not processed in rm event queue or scheduler event queu= e, cause test failure, seems we could implicitly invokes drainEvents(should= also drain sheduler event) in some mockRM method like waitForState -- 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