Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-265

FlumeAppender Stops App from Shutting Down when Newer Version of Netty is Used

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-beta6
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None

      Description

      FlumeAppender(log4j-flume-ng) depends on flume-ng-sdk, which uses netty-3.4.0.Final. When a higher version of netty is used instead, such as 3.5.8.Final or 3.6.5.Final, FlumeAppender will not shutdown properly.

      To reproduce the problem (use attached Maven project):
      1. Start your remote flume agent
      2. Change the log4j2.xml to your agent host and port
      3. press x and hit Enter

      Notice how the application continues to run. Press x should break out of the main loop and return from main(), indicating that the application should close.
      The thread holding things up are
      Hashed wheel timer #1
      New I/O worker #1-8

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jimtang Jim Tang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: