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

TestResettableFileInputStream fails on JDK 8

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0.1
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      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-1.patch
          1 kB
          Johny Rufus
        2. FLUME-2538.patch
          1 kB
          Johny Rufus

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: