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

TestUTF8 fails when run against java 8

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • test
    • None
    • Reviewed

    Description

      Using jdk1.8.0_20 , I got:

      testGetBytes(org.apache.hadoop.io.TestUTF8)  Time elapsed: 0.007 sec  <<< FAILURE!
      junit.framework.ComparisonFailure: expected:<쑼ь⣄鬘㟻햫紖燺[?炀⃍⑰풸낓⨵ἲꬌホ쭷㛕曬䟊⁍䴥䳠領蟭뱻宭竕昚鍳튇ꊕ혶齲쏈㠮胨䩦隼᢯䍻᝴킿喝벁ࢼ듿饭玳Մ剌䒤?䳛슟녚沖᯳?訨
      牙⍖?䎠旘薑春觀葝礫⁑ﻱ⣽゚굿뒦ݦ︀偆?]古絥萟浐> but was:<쑼ь⣄鬘㟻햫紖燺[�炀⃍⑰풸낓⨵ἲꬌホ쭷㛕曬䟊⁍䴥䳠領蟭뱻宭竕昚鍳튇ꊕ혶齲쏈㠮胨䩦隼᢯䍻᝴킿喝벁ࢼ듿饭玳Մ剌䒤�䳛슟녚᯳�訨牙⍖�䎠旘薑春觀葝礫⁑ﻱ⣽゚굿뒦ݦ︀偆�]古絥萟浐>
              at junit.framework.Assert.assertEquals(Assert.java:100)
              at junit.framework.Assert.assertEquals(Assert.java:107)
              at junit.framework.TestCase.assertEquals(TestCase.java:269)
              at org.apache.hadoop.io.TestUTF8.testGetBytes(TestUTF8.java:58)
      
      testIO(org.apache.hadoop.io.TestUTF8)  Time elapsed: 0.002 sec  <<< FAILURE!
      junit.framework.ComparisonFailure: expected:<...ᨍ⁖粩⧬车﹂脖朷䝄懒댵突疼資⍣眠畠忁[?]䪐ゑ鬍鍅遻ꈸ釡> but was:<...ᨍ⁖粩⧬车﹂脖朷䝄懒댵突疼資⍣眠畠忁[�]䪐ゑ鬍鍅遻>ꈸ釡>
              at junit.framework.Assert.assertEquals(Assert.java:100)
              at junit.framework.Assert.assertEquals(Assert.java:107)
              at junit.framework.TestCase.assertEquals(TestCase.java:269)
              at org.apache.hadoop.io.TestUTF8.testIO(TestUTF8.java:86)
      

      Attachments

        1. HADOOP-11165.1.patch
          2 kB
          Stephen Chu

        Issue Links

          Activity

            People

              schu Stephen Chu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: