From f934861420094769d3f3f6c2761e5caaea0ee666 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 12 Nov 2017 00:16:39 +0800 Subject: [PATCH] Uses shaded netty in server jar to avoid downstream conflicts. gRPC uses Netty 4.1 and `netty-tcnative-boringssl-static`, which is sensitive to Netty versions. DataStax Cassandra driver 4.0 uses Netty 4.1, but the driver isn't out, yet. By using the published shaded jar, we can dodge the conflict for now. I've verified that we can connect to google cloud services after this change. I've also verified that there's no significant jar size change. See https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty See https://github.com/GoogleCloudPlatform/stackdriver-zipkin/issues/45 --- pom.xml | 13 +--------- zipkin-collector/scribe/pom.xml | 5 ++++ zipkin-server/pom.xml | 42 +++++++++++++++++++++++++++++++ zipkin-storage/cassandra/pom.xml | 1 + zipkin-storage/cassandra3/pom.xml | 2 ++ 5 files changed, 51 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 9a936113629..bc8e3445c3e 100755 --- a/pom.xml +++ b/pom.xml @@ -312,17 +312,6 @@ ${project.version} - - - com.datastax.cassandra - cassandra-driver-core - ${cassandra-driver-core.version} - - - com.datastax.cassandra - cassandra-driver-mapping - ${cassandra-driver-core.version} - org.jooq jooq @@ -450,7 +439,7 @@ - + io.takari maven diff --git a/zipkin-collector/scribe/pom.xml b/zipkin-collector/scribe/pom.xml index 60221683b9b..677315ab0a9 100644 --- a/zipkin-collector/scribe/pom.xml +++ b/zipkin-collector/scribe/pom.xml @@ -53,6 +53,11 @@ io.airlift configuration + + + com.facebook.nifty + nifty-ssl + diff --git a/zipkin-server/pom.xml b/zipkin-server/pom.xml index 167ff366e18..e191843e4c1 100644 --- a/zipkin-server/pom.xml +++ b/zipkin-server/pom.xml @@ -87,6 +87,38 @@ ${project.groupId} zipkin-autoconfigure-storage-cassandra true + + + com.datastax.cassandra + cassandra-driver-core + + + + + + com.datastax.cassandra + cassandra-driver-core + ${cassandra-driver-core.version} + shaded + true + + + io.netty + * + + + + + com.datastax.cassandra + cassandra-driver-mapping + ${cassandra-driver-core.version} + true + + + com.datastax.cassandra + cassandra-driver-core + + @@ -94,6 +126,16 @@ ${project.groupId} zipkin-autoconfigure-storage-cassandra3 true + + + com.datastax.cassandra + cassandra-driver-core + + + com.datastax.cassandra + cassandra-driver-mapping + + diff --git a/zipkin-storage/cassandra/pom.xml b/zipkin-storage/cassandra/pom.xml index dd5e2f7b691..ad3e89100de 100644 --- a/zipkin-storage/cassandra/pom.xml +++ b/zipkin-storage/cassandra/pom.xml @@ -44,6 +44,7 @@ com.datastax.cassandra cassandra-driver-core + ${cassandra-driver-core.version} diff --git a/zipkin-storage/cassandra3/pom.xml b/zipkin-storage/cassandra3/pom.xml index eda1659d412..911900a3a39 100644 --- a/zipkin-storage/cassandra3/pom.xml +++ b/zipkin-storage/cassandra3/pom.xml @@ -44,11 +44,13 @@ com.datastax.cassandra cassandra-driver-core + ${cassandra-driver-core.version} com.datastax.cassandra cassandra-driver-mapping + ${cassandra-driver-core.version}