Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5816

ArrayIndexOutOfBoundsException when using KeyFieldBasedComparator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.19.1
    • 0.19.2
    • None
    • None
    • Reviewed

    Description

        
         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);
          }
      

      Attachments

        1. hadoop-5816-2009-05-24.patch
          3 kB
          He Yongqiang

        Activity

          People

            he yongqiang He Yongqiang
            coderplay Min Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: