Return-Path: Delivered-To: apmail-lucene-hadoop-commits-archive@locus.apache.org Received: (qmail 40499 invoked from network); 14 Dec 2007 19:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2007 19:58:57 -0000 Received: (qmail 80197 invoked by uid 500); 14 Dec 2007 19:58:46 -0000 Delivered-To: apmail-lucene-hadoop-commits-archive@lucene.apache.org Received: (qmail 80172 invoked by uid 500); 14 Dec 2007 19:58:46 -0000 Mailing-List: contact hadoop-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-commits@lucene.apache.org Received: (qmail 80163 invoked by uid 99); 14 Dec 2007 19:58:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 11:58:46 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 19:58:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 454741A984E; Fri, 14 Dec 2007 11:58:34 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r604281 - in /lucene/hadoop/trunk/src/contrib/hbase: CHANGES.txt src/java/org/onelab/filter/HashFunction.java Date: Fri, 14 Dec 2007 19:58:33 -0000 To: hadoop-commits@lucene.apache.org From: jimk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071214195834.454741A984E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jimk Date: Fri Dec 14 11:58:33 2007 New Revision: 604281 URL: http://svn.apache.org/viewvc?rev=604281&view=rev Log: HADOOP-2414 Fix ArrayIndexOutOfBoundsException in bloom filters. Modified: lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt lucene/hadoop/trunk/src/contrib/hbase/src/java/org/onelab/filter/HashFunction.java Modified: lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt?rev=604281&r1=604280&r2=604281&view=diff ============================================================================== --- lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt (original) +++ lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt Fri Dec 14 11:58:33 2007 @@ -80,6 +80,7 @@ HADOOP-2417 Fix critical shutdown problem introduced by HADOOP-2338 HADOOP-2418 Fix assertion failures in TestTableMapReduce, TestTableIndex, and TestTableJoinMapReduce + HADOOP-2414 Fix ArrayIndexOutOfBoundsException in bloom filters. IMPROVEMENTS HADOOP-2401 Add convenience put method that takes writable Modified: lucene/hadoop/trunk/src/contrib/hbase/src/java/org/onelab/filter/HashFunction.java URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/java/org/onelab/filter/HashFunction.java?rev=604281&r1=604280&r2=604281&view=diff ============================================================================== --- lucene/hadoop/trunk/src/contrib/hbase/src/java/org/onelab/filter/HashFunction.java (original) +++ lucene/hadoop/trunk/src/contrib/hbase/src/java/org/onelab/filter/HashFunction.java Fri Dec 14 11:58:33 2007 @@ -112,7 +112,7 @@ } int[] result = new int[nbHash]; for (int i = 0, initval = 0; i < nbHash; i++) { - initval = result[i] = Math.abs(JenkinsHash.hash(b, initval)) % maxValue; + initval = result[i] = Math.abs(JenkinsHash.hash(b, initval) % maxValue); } return result; }//end hash()