[ 
https://issues.apache.org/jira/browse/FLINK-21672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18056685#comment-18056685
 ] 

Yuepeng Pan edited comment on FLINK-21672 at 2/7/26 12:57 AM:
--------------------------------------------------------------

Merged into master(2.3.0) via: c71ff20970ead5e9e99b8d0a855e8a09f1e4bc98


Merged into release-2.2 via: 8d8b7cd3521c0998152a6ad3f788b960bfdc99bd

Merged into release-2.1  via: 371450f6b9f2af54afd26aa01e23718a10d443de

Merged into release-1.20  via: 1040bc75121f44803146ccd123a90fac0773fbfc


was (Author: JIRAUSER301104):
Merged into master(2.3.0) via: c71ff20970ead5e9e99b8d0a855e8a09f1e4bc98

> End to end tests (streaming) aren't Java vendor neutral (sun.management bean 
> used)
> ----------------------------------------------------------------------------------
>
>                 Key: FLINK-21672
>                 URL: https://issues.apache.org/jira/browse/FLINK-21672
>             Project: Flink
>          Issue Type: Improvement
>          Components: Tests
>            Reporter: Adam Roberts
>            Assignee: david radley
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.3.0
>
>
> Hi everyone, have been looking to run the tests for Flink using an 11 
> AdoptOpenJDK 11 distribution (so the latest for Linux, x86-64 specifically) 
> and I see
>  
>  [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile 
> (default-compile) on project flink-local-recovery-and-allocation-test: 
> Compilation failure: Compilation failure: 
>  [ERROR] 
> /var/home/core/flink/flink-end-to-end-tests/flink-local-recovery-and-allocation-test/src/main/java/org/apache/flink/streaming/tests/StickyAllocationAndLocalRecoveryTestJob.java:[416,23]
>  cannot find symbol
>  [ERROR] symbol: class VMManagement
>  [ERROR] location: package sun.management
>  [ERROR] 
> /var/home/core/flink/flink-end-to-end-tests/flink-local-recovery-and-allocation-test/src/main/java/org/apache/flink/streaming/tests/StickyAllocationAndLocalRecoveryTestJob.java:[416,59]
>  cannot find symbol
>  [ERROR] symbol: class VMManagement
>  [ERROR] location: package sun.management
>  [ERROR] -> [Help 1]
>   
> my guess is that AdoptOpenJDK's class-library simply doesn't have this 
> package and we should use a more neutral one if that's available - I went 
> with 
> [https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=openj9] 
> personally (OpenJ9 being the name for IBM's open-sourced J9 JVM), but I 
> wonder if that has its own platform specific bean as well; I haven't worked 
> on IBM's distribution of Java for almost seven years* but hopefully someone 
> may have more insight so you don't need to be using OpenJDK backed by HotSpot 
> to run said tests. It would be helpful if we didn't need an (if vendor == IBM 
> do this || vendor == Oracle do this ... etc) statement, so you can run the 
> tests no matter where you're getting Java from. 
>  
> *full disclaimer, I work at IBM and helped create AdoptOpenJDK, and used to 
> work in its Java team...I've honestly forgot if we have a vendor-neutral bean 
> available and now work on something totally different!
> Cheers!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to