[ https://issues.apache.org/jira/browse/KAFKA-7009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503377#comment-16503377 ]
ASF GitHub Bot commented on KAFKA-7009: --------------------------------------- rhauch opened a new pull request #5151: KAFKA-7009: Suppress the Reflections log warning messages in system tests URL: https://github.com/apache/kafka/pull/5151 This could be backported to older branches to reduce the extra log warning messages there, too. *More detailed description of your change, if necessary. The PR title and PR message become the squashed commit message, so use a separate comment to ping reviewers.* *Summary of testing strategy (including rationale) for the feature or bug fix. Unit and/or integration tests are expected for any behaviour change and system tests should be considered for larger changes.* ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Mute logger for reflections.org at the warn level in system tests > ----------------------------------------------------------------- > > Key: KAFKA-7009 > URL: https://issues.apache.org/jira/browse/KAFKA-7009 > Project: Kafka > Issue Type: Improvement > Components: KafkaConnect, system tests > Affects Versions: 1.1.0 > Reporter: Randall Hauch > Assignee: Randall Hauch > Priority: Critical > Fix For: 2.0.0 > > > AK's Log4J configuration file for Connect includes [these > lines|https://github.com/apache/kafka/blob/trunk/config/connect-log4j.properties#L25]: > {code} > log4j.logger.org.apache.zookeeper=ERROR > log4j.logger.org.I0Itec.zkclient=ERROR > log4j.logger.org.reflections=ERROR > {code} > The last one suppresses lots of Reflections warnings like the following that > are output during classpath scanning and are harmless: > {noformat} > [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) > {noformat} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)