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

ResettableInputStream returns Signed Data when parsing binary stream

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: Sinks+Sources
    • Labels:
      None

      Description

      ResettableInputStream returns signed values( -128 - 127 ) when reading data, specifically -1 when file stream contains 0xFF rather than unsigned data (0-255) and negative control signals. This causes a premature EOF to be detected by deserializers written to obey defined control signals.

      ResettableInputStream.read() returns an integer and should be returning the unsigned value of the byte (0 - 255) with -1 as en EOF rather than the signed value of (-128 - 127).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                huhlig Hans Uhlig
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: