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 3B45710A6A for ; Fri, 23 May 2014 06:41:02 +0000 (UTC) Received: (qmail 98650 invoked by uid 500); 23 May 2014 06:41:02 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 98604 invoked by uid 500); 23 May 2014 06:41:02 -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 98595 invoked by uid 99); 23 May 2014 06:41:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 06:41:02 +0000 Date: Fri, 23 May 2014 06:41:01 +0000 (UTC) From: "Anubhav Dhoot (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (YARN-2096) testQueueMetricsOnRMRestart has race condition 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-2096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anubhav Dhoot reassigned YARN-2096: ----------------------------------- Assignee: Anubhav Dhoot > testQueueMetricsOnRMRestart has race condition > ---------------------------------------------- > > Key: YARN-2096 > URL: https://issues.apache.org/jira/browse/YARN-2096 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Anubhav Dhoot > Assignee: Anubhav Dhoot > > org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart.testQueueMetricsOnRMRestart fails randomly because of a race condition. > The test validates that metrics are incremented, but does not wait for all transitions to finish before checking for the values. > It also resets metrics after kicking off recovery of second RM. The metrics that need to be incremented race with this reset causing test to fail randomly. > We need to wait for the right transitions. -- This message was sent by Atlassian JIRA (v6.2#6252)