[INLONG-9402][Sort] Solve errors in UT test logs for sort-end-to-end-tests, but UT results show as successful#9940
Merged
Conversation
2 tasks
Contributor
Author
|
In end-to-end-test-v1.15, because the postgreSQL module use debezuim.postgreSQL v1.6 package which base on java 11 or high. And this package use reflect, So, the postgreSQL module still has Warning: Illegal reflective access by org.apache.flink.api.java.ClosureCleaner (file:/opt/flink/lib/flink-dist-1.15.4.jar) to field java.lang.String.value. |
EMsnap
approved these changes
Apr 10, 2024
aloyszhang
approved these changes
Apr 10, 2024
dockerzhang
approved these changes
Apr 10, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Prepare a Pull Request
[INLONG-9402][Sort] Solve errors in UT test logs for sort-end-to-end-tests, but UT results show as successful
Fixes [Improve][Sort] Errors in UT test logs for sort-end-to-end-tests, but UT results show as successful #9402
Motivation
As issue #9402 description, there were two case encountered error but the final result show as successful.
Modifications
Question: Warning: Illegal reflective access by org.apache.flink.api.java.ClosureCleaner (file:/opt/flink/lib/flink-dist-1.15.4.jar) to field java.lang.String.value.
Reason: This error message indicates an illegal reflective access operation occurring while using Apache Flink, which is an open-source framework for processing streaming and batch data. Specifically, the error occurs because org.apache.flink.api.java.ClosureCleaner attempts to access the value field of the java.lang.String class illegally. This is more common with higher versions of Java, starting from Java 9 onwards, as the JDK has imposed stricter access controls on internal APIs to enhance security and modularity.
Solve: Change the flink docker java version from 11(flink:1.15.4-scala_2.12) to 8(flink:1.15.4-scala_2.12-java8).
Question: Can't connect the mysql server and through errors in logs, the results show as successful.
Reason:The issue which run end-to-end-tests use ci_ut.yaml, so it will lead to some network problem. Because ahead module test maybe change the newort adapter.
Solve: Now, the project add ci_ut_flink13.yaml and ci_ut_flink15.yaml. The 1.13 and 1.15 end-to-end test can be tested without other module influence.The detail of yaml file as PR #9924 and #9869 .