Skip to content

Commit 6f4ca8e

Browse files
committed
feat(sources): Pulsar should accept broker config options
The `pulsar-rs` crate has been updated to set broker configuration options such as maxUnackedMessagesPerConsumer. Pull in the update from our fork to test it. Ref: LOG-23305
1 parent 92ef546 commit 6f4ca8e

File tree

5 files changed

+265
-34
lines changed

5 files changed

+265
-34
lines changed

Cargo.lock

Lines changed: 97 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ openssl-probe = { version = "0.1.6", default-features = false }
409409
ordered-float.workspace = true
410410
percent-encoding = { version = "2.3.1", default-features = false }
411411
postgres-openssl = { version = "0.5.1", default-features = false, features = ["runtime"], optional = true }
412-
pulsar = { git = "https://github.com/streamnative/pulsar-rs", rev = "174070149bab64359f8a31094d7bfb857b045bf1", default-features = false, features = ["tokio-runtime", "auth-oauth2", "flate2", "lz4", "snap", "zstd"], optional = true }
412+
pulsar = { git = "https://github.com/mezmo/pulsar-rs", rev = "9cae903825bf6203f91198cfa4d42ebc9c099b06", default-features = false, features = ["tokio-runtime", "admin-api", "auth-oauth2", "flate2", "lz4", "snap", "zstd"], optional = true }
413413
quick-junit = { version = "0.5.1" }
414414
rand.workspace = true
415415
rand_distr.workspace = true
@@ -509,7 +509,7 @@ tower-test = "0.4.0"
509509
vector-lib = { workspace = true, features = ["test"] }
510510
vrl.workspace = true
511511

512-
temp-env = "0.3.1"
512+
temp-env = { version = "0.3.6", features = ["async_closure"] }
513513
wiremock = "0.6.4"
514514
zstd = { version = "0.13.0", default-features = false }
515515

deployment/kubernetes/mtp-vector.yaml.envsubst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@ spec:
156156
namespace: pipeline
157157
key: pipeline-db-secret-uri-key
158158

159+
- name: pulsar_admin_url
160+
optional: true
161+
default: 'http://pulsar-proxy.pulsar.svc.cluster.local'
162+
valueFrom:
163+
configMapKeyRef:
164+
name: publishing-backend
165+
namespace: default
166+
key: pulsar-http-service-url
167+
159168
strTemplates:
160169
- | # yaml
161170
apiVersion: v1
@@ -330,6 +339,9 @@ spec:
330339
- name: MEZMO_EVENT_TRACE_ENABLED
331340
value: "{{{mezmo_event_trace_enabled}}}"
332341

342+
- name: PULSAR_ADMIN_URL
343+
value: "{{{pulsar_admin_url}}}"
344+
333345
- name: DB_CONNECTION_POOL_SIZE
334346
value: "{{{db_connection_pool_size}}}"
335347

scripts/integration/pulsar/compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ version: '3'
33
services:
44
pulsar:
55
image: docker.io/apachepulsar/pulsar:${CONFIG_VERSION}
6-
command: sh -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone"
6+
command: sh -c "bin/apply-config-from-env.py --prefix PULSAR_PREFIX_ conf/standalone.conf && bin/pulsar standalone"
77
ports:
88
- 6650:6650
99
- 6651:6651
10+
- 8080:8080
1011
environment:
1112
- PULSAR_PREFIX_brokerServicePortTls=6651
1213
- PULSAR_PREFIX_tlsKeyFilePath=/etc/pulsar/certs/pulsar.key.pem

0 commit comments

Comments
 (0)