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

Log4j Appender + Avro Reflection on string results in an invalid avro schema

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: v1.4.0
    • Fix Version/s: v1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      When a user turns on Avro Reflection via AvroReflectionEnabled, and the user logs a string, the result is an invalid avro schema with "string" (including quotes).

      Users do not expect and invalid avro schema.

        Activity

        Hide
        brocknoland Brock Noland added a comment - - edited

        I think initially we should just add a note to not use AvroReflectionEnabled when the users will be logging strings.

        Show
        brocknoland Brock Noland added a comment - - edited I think initially we should just add a note to not use AvroReflectionEnabled when the users will be logging strings.
        Hide
        hshreedharan Hari Shreedharan added a comment -

        +1. Committing.

        Show
        hshreedharan Hari Shreedharan added a comment - +1. Committing.
        Hide
        hshreedharan Hari Shreedharan added a comment -

        Committed, rev: 79dc97bddbf6602c5f375337b3261f33d5555775. Thanks Brock!

        Show
        hshreedharan Hari Shreedharan added a comment - Committed, rev: 79dc97bddbf6602c5f375337b3261f33d5555775. Thanks Brock!
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in flume-trunk #527 (See https://builds.apache.org/job/flume-trunk/527/)
        FLUME-2264. Log4j Appender + Avro Reflection on string results in an invalid avro schema (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=79dc97bddbf6602c5f375337b3261f33d5555775)

        • flume-ng-doc/sphinx/FlumeUserGuide.rst
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in flume-trunk #527 (See https://builds.apache.org/job/flume-trunk/527/ ) FLUME-2264 . Log4j Appender + Avro Reflection on string results in an invalid avro schema (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=79dc97bddbf6602c5f375337b3261f33d5555775 ) flume-ng-doc/sphinx/FlumeUserGuide.rst

          People

          • Assignee:
            brocknoland Brock Noland
            Reporter:
            brocknoland Brock Noland
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development