Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-55607

Class path contains multiple SLF4J bindings: slf4j-reload4j

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown
    • Analytics Sprint 13

    Description

      Observed on current 7.2 Jenkins run:

      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/home/couchbase/jenkins/workspace/neo/install/lib/cbas/repo/jars/log4j-slf4j-impl-2.19.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/home/couchbase/jenkins/workspace/neo/install/lib/cbas/repo/jars/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
      

      This seems to have come in with recent Hadoop upgrade (https://review.couchbase.org/c/cbas-core/+/179298):

      |  |  +- org.apache.hadoop:hadoop-common:jar:3.3.4:compile
      |  |  |  +- org.apache.hadoop.thirdparty:hadoop-shaded-guava:jar:1.1.1:compile
      |  |  |  +- commons-collections:commons-collections:jar:3.2.2:compile
      |  |  |  +- jakarta.activation:jakarta.activation-api:jar:1.2.1:runtime
      |  |  |  +- ch.qos.reload4j:reload4j:jar:1.2.22:compile
      |  |  |  +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
      |  |  |  +- org.slf4j:slf4j-reload4j:jar:1.7.36:compile
      |  |  |  \- org.apache.hadoop:hadoop-auth:jar:3.3.4:compile
      

      We probably should exclude the slf4j-reload4j dependency, since we don't want logging to go to anything other than log4j2.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            umang.agrawal Umang
            michael.blow Michael Blow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty