mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
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>
This commit is contained in:
@@ -1898,7 +1898,7 @@ bom {
|
|||||||
releaseNotes("https://github.com/prometheus/client_java/releases/tag/parent-{version}")
|
releaseNotes("https://github.com/prometheus/client_java/releases/tag/parent-{version}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
library("Pulsar", "4.1.3") {
|
library("Pulsar", "4.2.0") {
|
||||||
group("org.apache.pulsar") {
|
group("org.apache.pulsar") {
|
||||||
bom("pulsar-bom")
|
bom("pulsar-bom")
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -238,9 +238,10 @@ public enum TestImage {
|
|||||||
/**
|
/**
|
||||||
* A container image suitable for testing Pulsar.
|
* A container image suitable for testing Pulsar.
|
||||||
*/
|
*/
|
||||||
PULSAR("apachepulsar/pulsar", "3.3.3", () -> PulsarContainer.class,
|
PULSAR("apachepulsar/pulsar", "4.2.0", () -> PulsarContainer.class,
|
||||||
(container) -> ((PulsarContainer) container).withStartupAttempts(2)
|
(container) -> ((PulsarContainer) container).withStartupAttempts(2)
|
||||||
.withStartupTimeout(Duration.ofMinutes(3))),
|
.withStartupTimeout(Duration.ofMinutes(3))
|
||||||
|
.withEnv("PULSAR_PREFIX_advertisedAddress", "localhost")),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A container image suitable for testing Pulsar using the deprecated
|
* A container image suitable for testing Pulsar using the deprecated
|
||||||
|
|||||||
Reference in New Issue
Block a user