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

Building test cases broken on java-1.4, TextTest.java has string creation bug.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 0.5.0
    • 0.6.0
    • None
    • None
    • Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
      rajaram.desktop% Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)

      RHEL3

    Description

      *Test Files
      — src/test/org/apache/hadoop/io/TestText.java (revision 432549)
      — src/test/org/apache/hadoop/mapred/MiniMRCluster.java (revision 432549)
      — src/test/org/apache/hadoop/mapred/TestSequenceFileInputFilter.java (revision 432549)
      — src/test/org/apache/hadoop/dfs/TestDFSShellGenericOptions.java (revision 432549)

      Broken on java-1.4
      and a bug in static method getTestString(int len).
      This function generates a character with code point equal or smaller then 0xFFFF, and converts this into array of chars of size 2(which should be one) and appened it buffer.
      So resulting into a a null character tobe inserted into string after a no null character.


      Find Patch attached.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              withoutugirl woyg
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: