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 44F30200BCA for ; Mon, 21 Nov 2016 13:05:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 44144160B19; Mon, 21 Nov 2016 12:05:02 +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 97540160AEC for ; Mon, 21 Nov 2016 13:05:01 +0100 (CET) Received: (qmail 80640 invoked by uid 500); 21 Nov 2016 12:05:00 -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 80609 invoked by uid 99); 21 Nov 2016 12:05:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 12:05:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 067762C4C77 for ; Mon, 21 Nov 2016 12:05:00 +0000 (UTC) Date: Mon, 21 Nov 2016 12:05:00 +0000 (UTC) From: "Varun Saxena (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5548) Use MockRMMemoryStateStore to reduce test failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 21 Nov 2016 12:05:02 -0000 [ https://issues.apache.org/jira/browse/YARN-5548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15683412#comment-15683412 ] Varun Saxena commented on YARN-5548: ------------------------------------ Thanks [~bibinchundatt] for the patch. Looking at it from the point of view of test failures, at many places we do not really need a MockRMMemoryStateStore as we wait on RMApp state which we transition to, after processing of state store event. But I cannot really see where in tests, a dispatcher for state store events will be necessary. For most tests, arguably, processing the event straight away may be faster then letting AsyncDispatcher thread pick it up because our tests will most probably be processing one app at a time and lock contention on state store is unlikely to happen. So I think we can pretty much use MockRMMemoryStateStore everywhere. Should we rename it to something else as we have moved this class outside MockRM ? However, I am fine to keep this name also if a suitable name cannot be thought of. There are still some tests where we are still using MemoryRMStateStore, for instance, TestNodeBlacklistingOnAMFailures. We use the new version of memory state store there ? > Use MockRMMemoryStateStore to reduce test failures > -------------------------------------------------- > > Key: YARN-5548 > URL: https://issues.apache.org/jira/browse/YARN-5548 > Project: Hadoop YARN > Issue Type: Test > Reporter: Bibin A Chundatt > Assignee: Bibin A Chundatt > Labels: oct16-easy, test > Attachments: YARN-5548.0001.patch, YARN-5548.0002.patch, YARN-5548.0003.patch, YARN-5548.0004.patch, YARN-5548.0005.patch, YARN-5548.0006.patch, YARN-5548.0007.patch > > > https://builds.apache.org/job/PreCommit-YARN-Build/12850/testReport/org.apache.hadoop.yarn.server.resourcemanager/TestRMRestart/testFinishedAppRemovalAfterRMRestart/ > {noformat} > Error Message > Stacktrace > java.lang.AssertionError: expected null, but was: > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.failNotNull(Assert.java:664) > at org.junit.Assert.assertNull(Assert.java:646) > at org.junit.Assert.assertNull(Assert.java:656) > at org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart.testFinishedAppRemovalAfterRMRestart(TestRMRestart.java:1656) > {noformat} -- 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