This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 04f68c96f4 HDDS-7633. Compile error with Java 11: package 
com.sun.jmx.mbeanserver is not visible (#4077)
04f68c96f4 is described below

commit 04f68c96f4e8af6b7c03ff3139f010ee702b7d48
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Jan 3 14:56:06 2023 +0100

    HDDS-7633. Compile error with Java 11: package com.sun.jmx.mbeanserver is 
not visible (#4077)
---
 .github/workflows/ci.yml                                                | 2 +-
 .../src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java      | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 82356bafa5..f540c1df77 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -147,7 +147,7 @@ jobs:
           distribution: 'temurin'
           java-version: ${{ matrix.java }}
       - name: Compile Ozone using Java ${{ matrix.java }}
-        run: hadoop-ozone/dev-support/checks/build.sh -Dskip.npx 
-Dskip.installnpx
+        run: hadoop-ozone/dev-support/checks/build.sh -Dskip.npx 
-Dskip.installnpx -Djavac.version=${{ matrix.java }}
       - name: Delete temporary build artifacts before caching
         run: |
           #Never cache local artifacts
diff --git 
a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java
 
b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java
index f9d39f9445..2d26d1e365 100644
--- 
a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java
+++ 
b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java
@@ -71,7 +71,6 @@ import org.apache.hadoop.util.Time;
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Preconditions;
-import com.sun.jmx.mbeanserver.Introspector;
 
 import static 
org.apache.hadoop.hdds.security.x509.certificate.utils.CertificateCodec.getX509Certificate;
 import static 
org.apache.hadoop.hdds.security.x509.certificates.utils.CertificateSignRequest.getEncodedString;
@@ -155,7 +154,6 @@ public class HddsDatanodeService extends GenericCli 
implements ServicePlugin {
     try {
       OzoneNetUtils.disableJvmNetworkAddressCacheIfRequired(
               new OzoneConfiguration());
-      Introspector.checkCompliance(DNMXBeanImpl.class);
       HddsDatanodeService hddsDatanodeService =
           createHddsDatanodeService(args, true);
       hddsDatanodeService.run(args);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to