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 4ABDE200BEF for ; Wed, 4 Jan 2017 23:22:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4999E160B47; Wed, 4 Jan 2017 22:22:00 +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 93171160B21 for ; Wed, 4 Jan 2017 23:21:59 +0100 (CET) Received: (qmail 79293 invoked by uid 500); 4 Jan 2017 22:21:58 -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 79219 invoked by uid 99); 4 Jan 2017 22:21:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 22:21:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 83FE12C2A67 for ; Wed, 4 Jan 2017 22:21:58 +0000 (UTC) Date: Wed, 4 Jan 2017 22:21:58 +0000 (UTC) From: "Junping Du (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-5901) Fix race condition in TestGetGroups beforeclass setup() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 Jan 2017 22:22:00 -0000 [ https://issues.apache.org/jira/browse/YARN-5901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Junping Du updated YARN-5901: ----------------------------- Fix Version/s: (was: 2.8.0) 2.9.0 > Fix race condition in TestGetGroups beforeclass setup() > ------------------------------------------------------- > > Key: YARN-5901 > URL: https://issues.apache.org/jira/browse/YARN-5901 > Project: Hadoop YARN > Issue Type: Bug > Components: yarn > Affects Versions: 3.0.0-alpha1 > Reporter: Haibo Chen > Assignee: Haibo Chen > Labels: unittest > Fix For: 2.9.0, 3.0.0-alpha2 > > Attachments: YARN-5901-branch-2.03.patch, YARN-5901.02.patch, YARN-5901.03.patch, yarn5901.001.patch > > > In TestGetGroups, the class-level setup method spins up, in a child thread, a resource manager that Yarn clients can talk to. But it checks whether the resource manager is fully started by doing resourcemanager.getServiceState() == STATE.STARTED. This is not reliable since resourcemanager.start() will first trigger service state change in RM, and then starts up all the services added to RM. We need to wait for RM to fully start before YARN clients can send requests. Otherwise, the tests can fail due to "connection refused" exception when the main thread sends out client requests to RM and if the RPC server has not fired up in the child thread. -- 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