Skip to content

Commit ba04832

Browse files
merlimatnikhil-ctds
authored andcommitted
[improve] Upgrade Jetcd to 0.7.7 and VertX to 4.5.8 (apache#22835)
(cherry picked from commit be5eb91) (cherry picked from commit 46b5419)
1 parent e8a5b93 commit ba04832

File tree

8 files changed

+55
-27
lines changed

8 files changed

+55
-27
lines changed

distribution/server/src/assemble/LICENSE.bin.txt

+12-11
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ The Apache Software License, Version 2.0
436436
- io.grpc-grpc-rls-1.55.3.jar
437437
- io.grpc-grpc-servlet-1.55.3.jar
438438
- io.grpc-grpc-servlet-jakarta-1.55.3.jar
439+
- io.grpc-grpc-util-1.60.0.jar
439440
* Perfmark
440441
- io.perfmark-perfmark-api-0.26.0.jar
441442
* OpenCensus
@@ -444,7 +445,7 @@ The Apache Software License, Version 2.0
444445
- io.opencensus-opencensus-proto-0.2.0.jar
445446
* Jodah
446447
- net.jodah-typetools-0.5.0.jar
447-
- net.jodah-failsafe-2.4.4.jar
448+
- dev.failsafe-failsafe-3.3.2.jar
448449
* Byte Buddy
449450
- net.bytebuddy-byte-buddy-1.14.12.jar
450451
* zt-zip
@@ -476,12 +477,12 @@ The Apache Software License, Version 2.0
476477
* JCTools - Java Concurrency Tools for the JVM
477478
- org.jctools-jctools-core-2.1.2.jar
478479
* Vertx
479-
- io.vertx-vertx-auth-common-4.3.8.jar
480-
- io.vertx-vertx-bridge-common-4.3.8.jar
481-
- io.vertx-vertx-core-4.3.8.jar
482-
- io.vertx-vertx-web-4.3.8.jar
483-
- io.vertx-vertx-web-common-4.3.8.jar
484-
- io.vertx-vertx-grpc-4.3.5.jar
480+
- io.vertx-vertx-auth-common-4.5.8.jar
481+
- io.vertx-vertx-bridge-common-4.5.8.jar
482+
- io.vertx-vertx-core-4.5.8.jar
483+
- io.vertx-vertx-web-4.5.8.jar
484+
- io.vertx-vertx-web-common-4.5.8.jar
485+
- io.vertx-vertx-grpc-4.5.8.jar
485486
* Apache ZooKeeper
486487
- org.apache.zookeeper-zookeeper-3.9.2.jar
487488
- org.apache.zookeeper-zookeeper-jute-3.9.2.jar
@@ -494,10 +495,10 @@ The Apache Software License, Version 2.0
494495
- com.google.auto.value-auto-value-annotations-1.9.jar
495496
- com.google.re2j-re2j-1.6.jar
496497
* Jetcd
497-
- io.etcd-jetcd-api-0.7.5.jar
498-
- io.etcd-jetcd-common-0.7.5.jar
499-
- io.etcd-jetcd-core-0.7.5.jar
500-
- io.etcd-jetcd-grpc-0.7.5.jar
498+
- io.etcd-jetcd-api-0.7.7.jar
499+
- io.etcd-jetcd-common-0.7.7.jar
500+
- io.etcd-jetcd-core-0.7.7.jar
501+
- io.etcd-jetcd-grpc-0.7.7.jar
501502
* IPAddress
502503
- com.github.seancfoley-ipaddress-5.3.3.jar
503504
* RxJava

pom.xml

+21-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ flexible messaging model and an intuitive client API.</description>
150150
<jersey.version>2.34</jersey.version>
151151
<athenz.version>1.10.50</athenz.version>
152152
<prometheus.version>0.16.0</prometheus.version>
153-
<vertx.version>4.3.8</vertx.version>
153+
<vertx.version>4.5.8</vertx.version>
154154
<rocksdb.version>7.9.2</rocksdb.version>
155155
<slf4j.version>1.7.32</slf4j.version>
156156
<commons.collections4.version>4.4</commons.collections4.version>
@@ -248,13 +248,14 @@ flexible messaging model and an intuitive client API.</description>
248248
<spring.version>5.3.27</spring.version>
249249
<apache-http-client.version>4.5.13</apache-http-client.version>
250250
<apache-httpcomponents.version>4.4.15</apache-httpcomponents.version>
251-
<jetcd.version>0.7.5</jetcd.version>
251+
<jetcd.version>0.7.7</jetcd.version>
252252
<snakeyaml.version>2.0</snakeyaml.version>
253253
<ant.version>1.10.12</ant.version>
254254
<seancfoley.ipaddress.version>5.3.3</seancfoley.ipaddress.version>
255255
<disruptor.version>3.4.3</disruptor.version>
256256
<zstd-jni.version>1.5.2-3</zstd-jni.version>
257257
<netty-reactive-streams.version>2.0.6</netty-reactive-streams.version>
258+
<failsafe.version>3.3.2</failsafe.version>
258259

259260
<!-- test dependencies -->
260261
<testcontainers.version>1.18.3</testcontainers.version>
@@ -376,6 +377,12 @@ flexible messaging model and an intuitive client API.</description>
376377
<version>${mockito.version}</version>
377378
</dependency>
378379

380+
<dependency>
381+
<groupId>dev.failsafe</groupId>
382+
<artifactId>failsafe</artifactId>
383+
<version>${failsafe.version}</version>
384+
</dependency>
385+
379386
<dependency>
380387
<groupId>org.apache.zookeeper</groupId>
381388
<artifactId>zookeeper</artifactId>
@@ -497,6 +504,11 @@ flexible messaging model and an intuitive client API.</description>
497504
<artifactId>vertx-web</artifactId>
498505
<version>${vertx.version}</version>
499506
</dependency>
507+
<dependency>
508+
<groupId>io.vertx</groupId>
509+
<artifactId>vertx-grpc</artifactId>
510+
<version>${vertx.version}</version>
511+
</dependency>
500512

501513
<dependency>
502514
<groupId>org.apache.curator</groupId>
@@ -595,6 +607,13 @@ flexible messaging model and an intuitive client API.</description>
595607
</exclusions>
596608
</dependency>
597609

610+
<dependency>
611+
<groupId>io.grpc</groupId>
612+
<artifactId>grpc-util</artifactId>
613+
<!-- This is only used for JEtcd so far. Once we upgrade Grpc to >= 1.60, we can remove the special version pin -->
614+
<version>1.60.0</version>
615+
</dependency>
616+
598617
<dependency>
599618
<groupId>org.apache.bookkeeper</groupId>
600619
<artifactId>bookkeeper-common</artifactId>

pulsar-sql/presto-distribution/LICENSE

+9-8
Original file line numberDiff line numberDiff line change
@@ -271,17 +271,18 @@ The Apache Software License, Version 2.0
271271
- grpc-protobuf-1.55.3.jar
272272
- grpc-protobuf-lite-1.55.3.jar
273273
- grpc-stub-1.55.3.jar
274+
- grpc-util-1.60.0.jar
274275
* JEtcd
275-
- jetcd-api-0.7.5.jar
276-
- jetcd-common-0.7.5.jar
277-
- jetcd-core-0.7.5.jar
278-
- jetcd-grpc-0.7.5.jar
276+
- jetcd-api-0.7.7.jar
277+
- jetcd-common-0.7.7.jar
278+
- jetcd-core-0.7.7.jar
279+
- jetcd-grpc-0.7.7.jar
279280
* Vertx
280-
- vertx-core-4.3.8.jar
281-
- vertx-grpc-4.3.5.jar
281+
- vertx-core-4.5.8.jar
282+
- vertx-grpc-4.5.8.jar
282283
* Joda Time
283284
- joda-time-2.10.10.jar
284-
- failsafe-2.4.4.jar
285+
- failsafe-3.3.2.jar
285286
* Jetty
286287
- http2-client-9.4.54.v20240208.jar
287288
- http2-common-9.4.54.v20240208.jar
@@ -306,7 +307,7 @@ The Apache Software License, Version 2.0
306307
* Bytecode
307308
- bytecode-1.2.jar
308309
* Airlift
309-
- aircompressor-0.20.jar
310+
- aircompressor-0.27.jar
310311
- bootstrap-213.jar
311312
- concurrent-213.jar
312313
- configuration-213.jar

tests/integration/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@
102102
<scope>test</scope>
103103
</dependency>
104104

105+
<dependency>
106+
<groupId>dev.failsafe</groupId>
107+
<artifactId>failsafe</artifactId>
108+
<scope>test</scope>
109+
</dependency>
110+
105111
<dependency>
106112
<groupId>org.testcontainers</groupId>
107113
<artifactId>mysql</artifactId>

tests/integration/src/test/java/org/apache/pulsar/tests/integration/io/PulsarIOTestRunner.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
package org.apache.pulsar.tests.integration.io;
2020

21+
import dev.failsafe.RetryPolicy;
2122
import java.time.Duration;
2223
import java.util.LinkedHashMap;
2324
import java.util.Map;
@@ -33,7 +34,6 @@
3334

3435
import lombok.Cleanup;
3536
import lombok.extern.slf4j.Slf4j;
36-
import net.jodah.failsafe.RetryPolicy;
3737

3838
@Slf4j
3939
public abstract class PulsarIOTestRunner {
@@ -42,10 +42,11 @@ public abstract class PulsarIOTestRunner {
4242
final Duration ONE_MINUTE = Duration.ofMinutes(1);
4343
final Duration TEN_SECONDS = Duration.ofSeconds(10);
4444

45-
protected final RetryPolicy<Void> statusRetryPolicy = new RetryPolicy<Void>()
45+
protected final RetryPolicy<?> statusRetryPolicy = RetryPolicy.builder()
4646
.withMaxDuration(ONE_MINUTE)
4747
.withDelay(TEN_SECONDS)
48-
.onRetry(e -> log.error("Retry ... "));
48+
.onRetry(e -> log.error("Retry ... "))
49+
.build();
4950

5051
protected PulsarCluster pulsarCluster;
5152
protected String functionRuntimeType;

tests/integration/src/test/java/org/apache/pulsar/tests/integration/io/sinks/PulsarIOSinkRunner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import static org.testng.Assert.assertTrue;
2323
import static org.testng.Assert.fail;
2424

25+
import dev.failsafe.Failsafe;
2526
import java.util.LinkedHashMap;
2627
import java.util.Map;
2728

@@ -46,7 +47,6 @@
4647

4748
import lombok.Cleanup;
4849
import lombok.extern.slf4j.Slf4j;
49-
import net.jodah.failsafe.Failsafe;
5050

5151
@Slf4j
5252
public class PulsarIOSinkRunner extends PulsarIOTestRunner {

tests/integration/src/test/java/org/apache/pulsar/tests/integration/io/sources/PulsarIOSourceRunner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import static org.testng.Assert.assertTrue;
2323
import static org.testng.Assert.fail;
2424

25+
import dev.failsafe.Failsafe;
2526
import java.util.Map;
2627

2728
import org.apache.commons.lang3.StringUtils;
@@ -45,7 +46,6 @@
4546

4647
import lombok.Cleanup;
4748
import lombok.extern.slf4j.Slf4j;
48-
import net.jodah.failsafe.Failsafe;
4949

5050
@Slf4j
5151
public class PulsarIOSourceRunner extends PulsarIOTestRunner {

tests/integration/src/test/java/org/apache/pulsar/tests/integration/io/sources/debezium/PulsarIODebeziumSourceRunner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
package org.apache.pulsar.tests.integration.io.sources.debezium;
2020

2121
import com.google.common.base.Preconditions;
22+
import dev.failsafe.Failsafe;
2223
import lombok.Cleanup;
2324
import lombok.extern.slf4j.Slf4j;
24-
import net.jodah.failsafe.Failsafe;
2525
import org.apache.pulsar.client.api.Consumer;
2626
import org.apache.pulsar.client.api.PulsarClient;
2727
import org.apache.pulsar.client.api.SubscriptionInitialPosition;

0 commit comments

Comments
 (0)