You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by zh...@apache.org on 2019/12/20 15:14:44 UTC
[flink] branch release-1.10 updated: [FLINK-15311][runtime] Remove
the shade of lz4 compression for using efficient native implementation
This is an automated email from the ASF dual-hosted git repository.
zhijiang pushed a commit to branch release-1.10
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.10 by this push:
new 5a30c79 [FLINK-15311][runtime] Remove the shade of lz4 compression for using efficient native implementation
5a30c79 is described below
commit 5a30c79b0db7c99784fbb40346b7682d0ac64740
Author: caoyingjie <ke...@alibaba-inc.com>
AuthorDate: Fri Dec 20 23:14:29 2019 +0800
[FLINK-15311][runtime] Remove the shade of lz4 compression for using efficient native implementation
Currently, lz4 java library is used by both runtime and table modules for data compression.
To avoid potential conflict with user jars, the library was shaded before.
However this way would change the class name to prevent JVM from finding the more
efficient native implementation. To boost the performance, this commit removes the shade
of lz4 library.
Note that this change might increase the probability of potential class conflict which can be solved via plugin mechanism in the future.
---
flink-runtime/pom.xml | 6 ------
1 file changed, 6 deletions(-)
diff --git a/flink-runtime/pom.xml b/flink-runtime/pom.xml
index 8ce1b1f..df1799b 100644
--- a/flink-runtime/pom.xml
+++ b/flink-runtime/pom.xml
@@ -546,7 +546,6 @@ under the License.
<include>io.netty:netty</include>
<include>org.uncommons.maths:uncommons-maths</include>
<include>org.apache.zookeeper:*</include>
- <include>org.lz4:lz4-java</include>
</includes>
</artifactSet>
<relocations combine.children="append">
@@ -578,11 +577,6 @@ under the License.
<pattern>org.apache.jute</pattern>
<shadedPattern>org.apache.flink.shaded.zookeeper.org.apache.zookeeper.jute</shadedPattern>
</relocation>
- <relocation>
- <!-- Relocate org.lz4:lz4-java -->
- <pattern>net.jpountz</pattern>
- <shadedPattern>org.apache.flink.runtime.shaded.net.jpountz</shadedPattern>
- </relocation>
</relocations>
<filters>
<filter>