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

LoggerSink prints garbage for body

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.0.0
    • None
    • None
    • None

    Description

      The LoggerSink relies on Event.toString() being implemented, which is not reliable since it's not part of the Event interface (of course, it's part of Object and prints some memory address by default).

      SimpleEvent implements toString() but poorly (prints the memory address for the body byte array), and other implementations of Event may not override toString().

      I will submit a patch to remove the toString() method from SimpleEvent and implement a quick fix in LoggerSink.

      Longer term, we may want to consider using something like MIME types via the headers so that decoding is more automatic and less reliant on the configured classes being fully cognizant of the data encoding.

      Attachments

        Issue Links

          Activity

            People

              mpercy Mike Percy
              mpercy Mike Percy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: