Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 073AF10E78 for ; Wed, 6 Nov 2013 23:33:21 +0000 (UTC) Received: (qmail 45096 invoked by uid 500); 6 Nov 2013 23:33:19 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 45048 invoked by uid 500); 6 Nov 2013 23:33:19 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 45007 invoked by uid 99); 6 Nov 2013 23:33:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 23:33:18 +0000 Date: Wed, 6 Nov 2013 23:33:18 +0000 (UTC) From: "Jonathan Eagles (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAPREDUCE-5610) TestSleepJob fails in jdk7 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/MAPREDUCE-5610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Eagles updated MAPREDUCE-5610: --------------------------------------- Attachment: MAPREDUCE-5610.patch In the approach I took, I initialize the hosts whether or not the number of random locations is greater than zero. > TestSleepJob fails in jdk7 > -------------------------- > > Key: MAPREDUCE-5610 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-5610 > Project: Hadoop Map/Reduce > Issue Type: Test > Reporter: Jonathan Eagles > Assignee: Jonathan Eagles > Attachments: MAPREDUCE-5610.patch > > > In jdk7 tests methods in a class do not run in file order, but rather in random order. TestSleepJob hosts are not initialized and a NullPointerException is thrown unless testRandomLocation was run first. > This can be easily seen by running tests individually. > org.apache.hadoop.mapred.gridmix.TestSleepJob#testStressSubmit > org.apache.hadoop.mapred.gridmix.TestSleepJob#testReplaySubmit > org.apache.hadoop.mapred.gridmix.TestSleepJob#testSerialSubmit > org.apache.hadoop.mapred.gridmix.TestSleepJob#testMapTasksOnlySleepJobs > org.apache.hadoop.mapred.gridmix.TestSleepJob#testRandomLocation -- This message was sent by Atlassian JIRA (v6.1#6144)