Return-Path: X-Original-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 CB8279FB4 for ; Thu, 11 Oct 2012 18:03:03 +0000 (UTC) Received: (qmail 39809 invoked by uid 500); 11 Oct 2012 18:03:03 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 39733 invoked by uid 500); 11 Oct 2012 18:03:03 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 39724 invoked by uid 99); 11 Oct 2012 18:03:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 18:03:02 +0000 Date: Thu, 11 Oct 2012 18:03:02 +0000 (UTC) From: "Sandy Ryza (JIRA)" To: mapreduce-dev@hadoop.apache.org Message-ID: <1771139336.32382.1349978582969.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (MAPREDUCE-4722) LocalJobRunner random ID should not be chosen with Math.abs(rand.nextInt()) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sandy Ryza created MAPREDUCE-4722: ------------------------------------- Summary: LocalJobRunner random ID should not be chosen with Math.abs(rand.nextInt()) Key: MAPREDUCE-4722 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4722 Project: Hadoop Map/Reduce Issue Type: Bug Components: job submission Affects Versions: 2.0.2-alpha Reporter: Sandy Ryza Assignee: Sandy Ryza According to findbugs 2, this can cause problems if the randomly generated int is Integer.MIN_VALUE because Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira