Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7009

Mute logger for reflections.org at the warn level in system tests

    XMLWordPrintableJSON

    Details

      Description

      AK's Log4J configuration file for Connect includes these lines:

      log4j.logger.org.apache.zookeeper=ERROR
      log4j.logger.org.I0Itec.zkclient=ERROR
      log4j.logger.org.reflections=ERROR
      

      The last one suppresses lots of Reflections warnings like the following that are output during classpath scanning and are harmless:

      [2018-06-06 13:52:39,448] WARN could not create Vfs.Dir from url. ignoring the exception and continuing (org.reflections.Reflections)
      org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/usr/bin/../share/java/confluent-support-metrics/*]
      either use fromURL(final URL url, final List<UrlType> urlTypes) or use the static setDefaultURLTypes(final List<UrlType> urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
          at org.reflections.vfs.Vfs.fromURL(Vfs.java:109)
          at org.reflections.vfs.Vfs.fromURL(Vfs.java:91)
          at org.reflections.Reflections.scan(Reflections.java:240)
          at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader$InternalReflections.scan(DelegatingClassLoader.java:373)
          at org.reflections.Reflections$1.run(Reflections.java:198)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
      

      The last line also need to be added to [Connect's Log4J configuration file in the AK system tests|https://github.com/apache/kafka/blob/trunk/tests/kafkatest/services/templates/connect_log4j.properties.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rhauch Randall Hauch
                Reporter:
                rhauch Randall Hauch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: