Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6291

Do not let slf4j-log4j12 leak into Ozone FS shaded jar

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The following commit accidentally changed Ozone Client's dependency on slf4j-log4j12 from test to compile scope.

      commit 9644f83c0ab86946e4f0f30ab6dadb222f000ebc
      Author:     Wei-Chiu Chuang <weichiu@apache.org>
      AuthorDate: Mon Jan 10 09:02:57 2022 +0800
      Commit:     GitHub <noreply@github.com>
      CommitDate: Mon Jan 10 09:02:57 2022 +0800
      
          HDDS-6086. Compute MD5MD5CRC file checksum using chunk checksums from DataNodes (#2919)
      
      diff --git hadoop-ozone/client/pom.xml hadoop-ozone/client/pom.xml
      index f7cbd5597..b5ba8e7e5 100644
      --- hadoop-ozone/client/pom.xml
      +++ hadoop-ozone/client/pom.xml
      @@ -51,6 +51,10 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
           <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
      +    </dependency>
      +    <dependency>
      +      <groupId>org.mockito</groupId>
      +      <artifactId>mockito-core</artifactId>
             <scope>test</scope>
           </dependency>
         </dependencies>
      

      Since this is a new dependency, it is silently added into the Ozone FS shaded jars:

      [INFO] --- maven-shade-plugin:3.2.4:shade (default) @ ozone-filesystem-shaded ---
      ...
      [INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.30 in the shaded jar.
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            adoroszlai Attila Doroszlai
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment