Jayesh Lalwani created FLINK-39659:
--------------------------------------
Summary: Add JDK 17 test support with proper --add-opens
documentation
Key: FLINK-39659
URL: https://issues.apache.org/jira/browse/FLINK-39659
Project: Flink
Issue Type: Improvement
Components: Connectors / Hive
Reporter: Jayesh Lalwani
Flink 2.0 recommends Java 17. The Hive connector tests currently only run on
JDK 11. Adding JDK 17 to the CI matrix requires --add-opens/--add-exports JVM
flags because Hive uses deep reflection on java.base internals
(StringInternUtils, SessionState, SerDe initialization).
Each flag should be documented with the specific test class that requires it,
following the convention in the main Flink repo (e.g. flink-runtime/pom.xml).
Flags expected to be needed:
- --add-opens java.base/java.lang=ALL-UNNAMED
- --add-opens java.base/java.net=ALL-UNNAMED
- --add-opens java.base/java.nio=ALL-UNNAMED
- --add-opens java.base/java.util=ALL-UNNAMED
- --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED
- --add-opens java.base/java.time=ALL-UNNAMED
- --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
--
This message was sent by Atlassian Jira
(v8.20.10#820010)