-
Notifications
You must be signed in to change notification settings - Fork 13.8k
fix issue https://issues.apache.org/jira/browse/FLINK-12725 #8717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit d72363e (Tue Aug 06 15:42:44 UTC 2019) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
|
@aljoscha Here |
|
Hi @arganzheng, |
|
Thanks! I merged this already. For next time, please provide a good title for the PR according to the contribution guidelines, as Dawid mentioned. |
|
Sorry for the title, I did not read the guidelines carefully. |
|
i cherry-pick this fix to release-1.8.0 and run it with mongo input format (org.mongodb, mongo-hadoop-core, 1.3.0)。 found exception of java.lang.LinkageError: |
|
@ben-wangz I have the same issue on flink 1.9.1: how did you work around it? Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy.setFallbackInstantiatorStrategy(Lorg/objenesis/strategy/InstantiatorStrategy;)V" the class loader (instance of org/apache/flink/runtime/execution/librarycache/FlinkUserCodeClassLoaders$ChildFirstClassLoader) of the current class, org/apache/flink/api/java/typeutils/runtime/WritableSerializer, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, com/esotericsoftware/kryo/Kryo$DefaultInstantiatorStrategy, have different Class objects for the type org/objenesis/strategy/InstantiatorStrategy used in the signature |
|
@HenryCaiHaiying flink-conf.yml ->classloader.resolve-order: parent-first |
What is the purpose of the change
fix issue https://issues.apache.org/jira/browse/FLINK-12725. No need to copy the flink-hadoop-compatibility jar explicitly to ${FLINK-HOME}/lib location.
Brief change log
change the classLoader of
org.apache.flink.api.java.typeutils.WritableTypeInfofromTypeExtractor.class.getClassLoader()toThread.currentThread().getContextClassLoader().Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): ( no)Documentation