Skip to content

Commit 85af0d6

Browse files
onobcsnicoll
authored andcommitted
Upgrade to Pulsar 4.2.0
This commit updates the managed version of Pulsar from `4.1.3` to `4.2.0` and the test image version from `3.3.3` to `4.2.0`. Since Pulsar `4.2.0` standalone mode advertises the container's FQDN (the container ID) instead of localhost. The Pulsar client reconnects to the advertised address during servicediscovery, but is unable to reach the FQDN. Therefore, this also sets the `advertisedAddress` on the Pulsar testcontainers used by the tests. See gh-49900 Signed-off-by: onobc <chris.bono@gmail.com>
1 parent ccfb36c commit 85af0d6

File tree

2 files changed

+4
-3
lines changed
  • platform/spring-boot-dependencies
  • test-support/spring-boot-docker-test-support/src/main/java/org/springframework/boot/testsupport/container

2 files changed

+4
-3
lines changed

platform/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ bom {
18981898
releaseNotes("https://github.com/prometheus/client_java/releases/tag/parent-{version}")
18991899
}
19001900
}
1901-
library("Pulsar", "4.1.3") {
1901+
library("Pulsar", "4.2.0") {
19021902
group("org.apache.pulsar") {
19031903
bom("pulsar-bom")
19041904
}

test-support/spring-boot-docker-test-support/src/main/java/org/springframework/boot/testsupport/container/TestImage.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,10 @@ public enum TestImage {
238238
/**
239239
* A container image suitable for testing Pulsar.
240240
*/
241-
PULSAR("apachepulsar/pulsar", "3.3.3", () -> PulsarContainer.class,
241+
PULSAR("apachepulsar/pulsar", "4.2.0", () -> PulsarContainer.class,
242242
(container) -> ((PulsarContainer) container).withStartupAttempts(2)
243-
.withStartupTimeout(Duration.ofMinutes(3))),
243+
.withStartupTimeout(Duration.ofMinutes(3))
244+
.withEnv("PULSAR_PREFIX_advertisedAddress", "localhost")),
244245

245246
/**
246247
* A container image suitable for testing Pulsar using the deprecated

0 commit comments

Comments
 (0)