Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2538

TestResettableFileInputStream fails on JDK 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0.1
    • 1.6.0
    • None
    • None

    Description

      TestResettableFileInputStream.testUtf8DecodeErrorHandlingReplace fails in JDK 8
      "testUtf8DecodeErrorHandlingReplace(org.apache.flume.serialization.TestResettableFileInputStream) Time elapsed: 6 sec <<< FAILURE!
      org.junit.ComparisonFailure: expected:<...(���)
      NonUnicode: (�[])
      > but was:<...(���)
      NonUnicode: (�[����]) "

      Charsetdecoder.decode has changed in its behavior, as to how it handles CodingErrorAction.Replace policy
      Will submit a patch today.

      Attachments

        1. FLUME-2538.patch
          1 kB
          Johny Rufus
        2. FLUME-2538-1.patch
          1 kB
          Johny Rufus

        Activity

          People

            jrufus Johny Rufus
            jrufus Johny Rufus
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: