Skip to content

Commit 8cc1de2

Browse files
authored
pulsar: various test fixes (#4309)
* pulsar: use native ARM image to fix container startup timeouts Switch from apachepulsar/pulsar-standalone:2.8.3 (amd64-only) to apachepulsar/pulsar:3.3.4 (multi-arch) so the container runs natively on ARM instead of under x86 emulation. This eliminates the slow startup that caused context deadline exceeded errors. Fixes CON-387 * pulsar: disable StreamTestAtLeastOnceDelivery due to upstream data race The benthos StreamTestAtLeastOnceDelivery test helper has an unsynchronized concurrent map read/write at stream_test_definitions.go:571-584. A goroutine iterates a shared map while another writes to it. Since this is in upstream benthos code, disabling the test until the race is fixed upstream. Fixes CON-415
1 parent 1c8a23d commit 8cc1de2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

internal/impl/pulsar/integration_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
func TestIntegrationPulsar(t *testing.T) {
3131
integration.CheckSkip(t)
3232

33-
ctr, err := testcontainers.Run(t.Context(), "apachepulsar/pulsar-standalone:2.8.3",
34-
testcontainers.WithImagePlatform("linux/amd64"),
33+
ctr, err := testcontainers.Run(t.Context(), "apachepulsar/pulsar:3.3.4",
34+
testcontainers.WithCmd("bin/pulsar", "standalone"),
3535
testcontainers.WithExposedPorts("6650/tcp", "8080/tcp"),
3636
testcontainers.WithWaitStrategyAndDeadline(3*time.Minute,
3737
wait.ForHTTP("/admin/v2/brokers/ready").WithPort("8080/tcp").WithStartupTimeout(3*time.Minute),
@@ -95,7 +95,8 @@ input:
9595
integration.StreamTestStreamParallel(1000),
9696
integration.StreamTestStreamParallelLossy(1000),
9797
integration.StreamTestStreamParallelLossyThroughReconnect(1000),
98-
integration.StreamTestAtLeastOnceDelivery(),
98+
// StreamTestAtLeastOnceDelivery disabled due to upstream data race in
99+
// benthos stream_test_definitions.go:571-584 (concurrent map read/write).
99100
)
100101

101102
suite.Run(

0 commit comments

Comments
 (0)