Skip to content

Commit

Permalink
Fix protobuf version to 3.11.4 (apache#8028)
Browse files Browse the repository at this point in the history
* Fix protobuf version to 3.11.4

Signed-off-by: xiaolong.ran <[email protected]>

* fix ci error

Signed-off-by: xiaolong.ran <[email protected]>
  • Loading branch information
wolfstudy authored Sep 11, 2020
1 parent 832c68e commit 93fb4fe
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 10 deletions.
9 changes: 5 additions & 4 deletions distribution/server/src/assemble/LICENSE.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ The Apache Software License, Version 2.0
* SnakeYaml -- org.yaml-snakeyaml-1.26.jar
* RocksDB - org.rocksdb-rocksdbjni-5.13.3.jar
* Google Error Prone Annotations - com.google.errorprone-error_prone_annotations-2.1.3.jar
* OkHttp - com.squareup.okhttp-okhttp-2.5.0.jar
* OkHttp
- com.squareup.okhttp-okhttp-2.5.0.jar
* Okio - com.squareup.okio-okio-1.13.0.jar
* Javassist -- org.javassist-javassist-3.25.0-GA.jar
* gRPC
Expand All @@ -457,8 +458,8 @@ The Apache Software License, Version 2.0
- io.grpc-grpc-okhttp-1.18.0.jar
- io.grpc-grpc-protobuf-1.18.0.jar
- io.grpc-grpc-protobuf-lite-1.18.0.jar
- io.grpc-grpc-protobuf-nano-1.18.0.jar
- io.grpc-grpc-stub-1.18.0.jar
- io.grpc-grpc-protobuf-nano-1.18.0.jar
- io.grpc-grpc-testing-1.18.0.jar
* OpenCensus
- io.opencensus-opencensus-api-0.18.0.jar
Expand Down Expand Up @@ -530,8 +531,8 @@ MIT License

Protocol Buffers License
* Protocol Buffers
- com.google.protobuf-protobuf-java-3.5.1.jar -- licenses/LICENSE-protobuf.txt
- com.google.protobuf-protobuf-java-util-3.5.1.jar -- licenses/LICENSE-protobuf.txt
- com.google.protobuf-protobuf-java-3.11.4.jar -- licenses/LICENSE-protobuf.txt
- com.google.protobuf-protobuf-java-util-3.11.4.jar -- licenses/LICENSE-protobuf.txt
- com.google.protobuf.nano-protobuf-javanano-3.0.0-alpha-5.jar -- licenses/LICENSE-protobuf.txt

CDDL-1.1 -- licenses/LICENSE-CDDL-1.1.txt
Expand Down
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ flexible messaging model and an intuitive client API.</description>
<dockerfile-maven.version>1.4.13</dockerfile-maven.version>
<typetools.version>0.5.0</typetools.version>
<protobuf2.version>2.4.1</protobuf2.version>
<protobuf3.version>3.5.1</protobuf3.version>
<protoc3.version>3.5.1-1</protoc3.version>
<protobuf3.version>3.11.4</protobuf3.version>
<protoc3.version>3.11.4</protoc3.version>
<grpc.version>1.18.0</grpc.version>
<protoc-gen-grpc-java.version>1.12.0</protoc-gen-grpc-java.version>
<gson.version>2.8.2</gson.version>
Expand Down Expand Up @@ -789,6 +789,12 @@ flexible messaging model and an intuitive client API.</description>
<version>${grpc.version}</version>
</dependency>

<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>

<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf-lite</artifactId>
Expand Down
19 changes: 19 additions & 0 deletions pulsar-functions/instance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,18 @@
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
</dependency>

<!-- `grpc-all` is excluded from `stream-storage-server` at root pom file -->
<dependency>
<groupId>io.grpc</groupId>
Expand All @@ -97,6 +106,16 @@
<dependency>
<groupId>org.apache.bookkeeper</groupId>
<artifactId>bookkeeper-common</artifactId>
<exclusions>
<exclusion>
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private synchronized void setupGrpcChannelIfNeeded() {
for (int i = 0; i < instanceConfig.getFunctionDetails().getParallelism(); ++i) {
String address = getServiceUrl(jobName, jobNamespace, i);
channel[i] = ManagedChannelBuilder.forAddress(address, grpcPort)
.usePlaintext(true)
.usePlaintext()
.build();
stub[i] = InstanceControlGrpc.newFutureStub(channel[i]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void start() {
startProcess();
if (channel == null && stub == null) {
channel = ManagedChannelBuilder.forAddress("127.0.0.1", instancePort)
.usePlaintext(true)
.usePlaintext()
.build();
stub = InstanceControlGrpc.newFutureStub(channel);

Expand Down
4 changes: 2 additions & 2 deletions pulsar-sql/presto-distribution/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ The Apache Software License, Version 2.0
Protocol Buffers License
* Protocol Buffers
- protobuf-shaded-2.1.0-incubating.jar
- protobuf-java-3.5.1.jar
- protobuf-java-util-3.5.1.jar
- protobuf-java-3.11.4.jar
- protobuf-java-util-3.11.4.jar

BSD 3-clause "New" or "Revised" License
* RE2J TD -- re2j-td-1.4.jar
Expand Down

0 comments on commit 93fb4fe

Please sign in to comment.