This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository

The following commit(s) were added to refs/heads/master by this push:
     new bed1d6f  Dont shade netty at distributedlog-core-shaded
bed1d6f is described below

commit bed1d6f03700838f0667fbab8f8d9032b8294792
Author: Sijie Guo <>
AuthorDate: Tue Mar 6 01:33:26 2018 -0800

    Dont shade netty at distributedlog-core-shaded
    Descriptions of the changes in this PR:
    JVM crashed on linux platforms, when`distributedlog-core-shaded` (where 
netty `4.1.12.Final` was shaded) is used in a project where a non-shaded netty 
`4.1.21.Final` is used and epoll is enabled.
    Event: 13.322 Thread 0x00007fef90013000 Exception <a 
'java/lang/NoSuchMethodError': Method name or signature does not 
match>             (0x00000000e709c060) thrown at 
[/build/openjdk-8-8u141-b15/src/hotspot/src/share/vm/prims/jni.cpp, line 4011]
    Because Epoll is enabled on linux platforms. However because two different 
netty versions bring in two different jni bindings, when the netty epoll 
transport tries to resolve the jni library, it hit the signature mismatch issue.
    Dont shade netty at all. Let the application resolve which netty version to 
    Author: Sijie Guo <>
    Reviewers: Jia Zhai <None>
    This closes #1231 from sijie/dont_shade_netty
 shaded/distributedlog-core-shaded/pom.xml | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/shaded/distributedlog-core-shaded/pom.xml 
index 96d4864..97d26f3 100644
--- a/shaded/distributedlog-core-shaded/pom.xml
+++ b/shaded/distributedlog-core-shaded/pom.xml
@@ -44,6 +44,14 @@
+        <exclusion>
+          <groupId>io.netty</groupId>
+          <artifactId>netty-common</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>io.netty</groupId>
+          <artifactId>netty-buffer</artifactId>
+        </exclusion>
@@ -75,11 +83,8 @@
+                  <!-- netty 3 (included from zookeeper) -->
-                  <include>io.netty:netty-all</include>
-                  <include>io.netty:netty-buffer</include>
-                  <include>io.netty:netty-common</include>
-                  <include>io.netty:netty-tcnative-boringssl-static</include>
@@ -170,10 +175,6 @@
                 <!-- netty -->
-                  <pattern>io.netty</pattern>
-                  <shadedPattern></shadedPattern>
-                </relocation>
-                <relocation>

To stop receiving notification emails like this one, please contact

Reply via email to