hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Zhou (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-5816) ArrayIndexOutOfBoundsException when using KeyFieldBasedComparator
Date Wed, 13 May 2009 02:04:46 GMT
ArrayIndexOutOfBoundsException when using KeyFieldBasedComparator

                 Key: HADOOP-5816
                 URL: https://issues.apache.org/jira/browse/HADOOP-5816
             Project: Hadoop Core
          Issue Type: Bug
          Components: mapred
    Affects Versions: 0.19.1
            Reporter: Min Zhou
            Priority: Minor

   if (!key.numeric) {
      compareResult = compareBytes(first, start1, end1, second, start2, end2);
those lines above, compare two byte arrays in a wrong way, it will cause an ArrayIndexOutOfBoundsException,
 that should be 
   if (!key.numeric) {
      compareResult = compareBytes(first, start1, end1-start1, second, start2, end2-start2);

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message