[
https://issues.apache.org/jira/browse/FLINK-6805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16128565#comment-16128565
]
ASF GitHub Bot commented on FLINK-6805:
---------------------------------------
Github user mcfongtw commented on a diff in the pull request:
https://github.com/apache/flink/pull/4545#discussion_r133404126
--- Diff: flink-connectors/flink-connector-cassandra/pom.xml ---
@@ -83,6 +85,10 @@ under the License.
<exclude>com.google.inject.**</exclude>
</excludes>
</relocation>
+ <relocation>
+
<pattern>io.netty</pattern>
+
<shadedPattern>org.apache.flink.shaded.netty4.io.netty</shadedPattern>
--- End diff --
Thanks for your review and reply! I see your points now, and I still have a
few questions to the shading approach though:
1. There seems to be some policies for making shadedPattern for different
scenarios. Would there be any external documents that possibly address these
rules?
2. It is obvious to shade a *direct dependency, since we need it to be free
of class clashes. How would we decide which *indirect dependencies to be shaded?
3. The benefit of shading is clear, but wouldn't it increase the jar file
size if there are more dependencies that need to be managed later on - also the
effort of managing the including/relocation rules.
I will update another version of PR later. Thanks!
> Flink Cassandra connector dependency on Netty disagrees with Flink
> ------------------------------------------------------------------
>
> Key: FLINK-6805
> URL: https://issues.apache.org/jira/browse/FLINK-6805
> Project: Flink
> Issue Type: Bug
> Components: Cassandra Connector
> Affects Versions: 1.3.0, 1.2.1
> Reporter: Shannon Carey
> Assignee: Michael Fong
> Fix For: 1.4.0
>
>
> The Flink Cassandra connector has a dependency on Netty libraries (via
> promotion of transitive dependencies by the Maven shade plugin) at version
> 4.0.33.Final, which disagrees with the version included in Flink of
> 4.0.27.Final which is included & managed by the parent POM via dependency on
> netty-all.
> Due to use of netty-all, the dependency management doesn't take effect on the
> individual libraries such as netty-handler, netty-codec, etc.
> I suggest that dependency management of Netty should be added for all Netty
> libraries individually (netty-handler, etc.) so that all Flink modules use
> the same version, and similarly I suggest that exclusions be added to the
> quickstart example POM for the individual Netty libraries so that fat JARs
> don't include conflicting versions of Netty.
> It seems like this problem started when FLINK-6084 was implemented:
> transitive dependencies of the flink-connector-cassandra were previously
> omitted, and now that they are included we must make sure that they agree
> with the Flink distribution.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)