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

KafkaAppender fails application startup when bootstrap server are not available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.2, 2.10.0
    • None
    • Appenders
    • Tried on Windows 10, IDE Eclipse Oxygen

    Description

      When the server mentioned in bootstrap.servers property in kafka appender are not available.
      For e.g. Unable to resolve DNS etc.

      The application isn't starting and the java process terminates after trying to connect to the server.

      Failure to initialize the appender should not block the application process and other appenders, just like file appender, for e.g. when file path is not resolvable, it moves forward.

      Attached log4j2.xml.

      Tried wrapping it in async appender as well, does not provide expected result as the issue is with initialization of appender.

      Attachments

        1. log4j2.xml
          1 kB
          Shwetank Sharma

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Shwetank Shwetank Sharma
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: