From yarn-dev-return-28931-apmail-hadoop-yarn-dev-archive=hadoop.apache.org@hadoop.apache.org Wed Nov 29 02:18:05 2017 Return-Path: X-Original-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 483E6173CA for ; Wed, 29 Nov 2017 02:18:05 +0000 (UTC) Received: (qmail 29280 invoked by uid 500); 29 Nov 2017 02:18:04 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 29009 invoked by uid 500); 29 Nov 2017 02:18:04 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 28998 invoked by uid 99); 29 Nov 2017 02:18:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2017 02:18:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BF20D1A141A for ; Wed, 29 Nov 2017 02:18:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rpyarcgiinEL for ; Wed, 29 Nov 2017 02:18:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1EDF65F566 for ; Wed, 29 Nov 2017 02:18:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4D82FE019B for ; Wed, 29 Nov 2017 02:18:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 098EF241B8 for ; Wed, 29 Nov 2017 02:18:00 +0000 (UTC) Date: Wed, 29 Nov 2017 02:18:00 +0000 (UTC) From: "Guangming Zhang (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-7578) Extend TestDiskFailures.waitForDiskHealthCheck() sleeping time. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Guangming Zhang created YARN-7578: ------------------------------------- Summary: Extend TestDiskFailures.waitForDiskHealthCheck() sleeping time. Key: YARN-7578 URL: https://issues.apache.org/jira/browse/YARN-7578 Project: Hadoop YARN Issue Type: Test Affects Versions: 3.1.0 Environment: ARMv8 AArch64, Ubuntu16.04 Reporter: Guangming Zhang Priority: Minor Fix For: 3.1.0 Thread.sleep() function is called to wait for NodeManager to identify disk failures. But in some cases, for example the lower-end hardware computer, the sleep time is too short so that the NodeManager may haven't finished identifying disk failures. This will occur test errors: {code:java} Running org.apache.hadoop.yarn.server.TestDiskFailures Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 17.686 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.TestDiskFailures testLocalDirsFailures(org.apache.hadoop.yarn.server.TestDiskFailures) Time elapsed: 10.412 sec <<< FAILURE! java.lang.AssertionError: NodeManager could not identify disk failure. at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.apache.hadoop.yarn.server.TestDiskFailures.verifyDisksHealth(TestDiskFailures.java:239) at org.apache.hadoop.yarn.server.TestDiskFailures.testDirsFailures(TestDiskFailures.java:186) at org.apache.hadoop.yarn.server.TestDiskFailures.testLocalDirsFailures(TestDiskFailures.java:99) testLogDirsFailures(org.apache.hadoop.yarn.server.TestDiskFailures) Time elapsed: 5.99 sec <<< FAILURE! java.lang.AssertionError: NodeManager could not identify disk failure. at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.apache.hadoop.yarn.server.TestDiskFailures.verifyDisksHealth(TestDiskFailures.java:239) at org.apache.hadoop.yarn.server.TestDiskFailures.testDirsFailures(TestDiskFailures.java:186) at org.apache.hadoop.yarn.server.TestDiskFailures.testLogDirsFailures(TestDiskFailures.java:111) {code} So extend the sleep time from 1000ms to 1500ms to avoid some unit test errors. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-dev-help@hadoop.apache.org