Skip to content

Commit 8fd8990

Browse files
Enable Kafka transactions in generic e2e
1 parent 84b45bd commit 8fd8990

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.ci/clusters/values_skywalking_e2e_cluster.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ zookeeper:
6464
cpu: 50m
6565

6666
bookkeeper:
67-
replicaCount: 0
67+
replicaCount: 1
6868
metadata:
6969
image:
7070
repository: streamnative/sn-platform
@@ -116,8 +116,10 @@ broker:
116116
autoSkipNonRecoverableData: "true"
117117
messagingProtocols: "kafka"
118118
protocolHandlerDirectory: "./protocols"
119-
kafkaListeners: "PLAINTEXT://0.0.0.0:9092"
120-
kafkaAdvertisedListeners: "PLAINTEXT://sn-platform-pulsar-broker-0.sn-platform-pulsar-broker.default.svc.cluster.local:9092"
119+
PULSAR_PREFIX_kafkaListeners: "PLAINTEXT://0.0.0.0:9092"
120+
PULSAR_PREFIX_kafkaAdvertisedListeners: "PLAINTEXT://sn-platform-pulsar-broker-0.sn-platform-pulsar-broker.default.svc.cluster.local:9092"
121+
transactionCoordinatorEnabled: "true"
122+
systemTopicEnabled: "true"
121123
# storage settings
122124
managedLedgerDefaultEnsembleSize: "1"
123125
managedLedgerDefaultWriteQuorum: "1"

.ci/tests/integration/cases/generic-kafka-function/manifests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
outputSchemaConfig:
3333
type: string
3434
genericRuntime:
35-
functionFile: /pulsar/functions/exclamation_function.py
35+
functionFile: exclamation_function.py
3636
functionFileLocation: function://public/default/test-py-function
3737
language: python
3838
pulsarPackageService:

.ci/tests/integration/cases/generic-kafka-function/verify.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ kubectl wait pod kafka-client --for=condition=Ready --timeout=2m || {
4848
exit 1
4949
}
5050

51-
ci::ensure_kafka_topic "${input_topic}" "${kafka_bootstrap_server}" "${kafka_properties_file}"
52-
ci::ensure_kafka_topic "${output_topic}" "${kafka_bootstrap_server}" "${kafka_properties_file}"
51+
ci::ensure_kafka_topic "${input_topic}" "${kafka_bootstrap_server}" "${kafka_properties_file}" > /dev/null 2>&1
52+
ci::ensure_kafka_topic "${output_topic}" "${kafka_bootstrap_server}" "${kafka_properties_file}" > /dev/null 2>&1
5353
kubectl apply -f "${manifests_file}" > /dev/null 2>&1
5454

5555
kubectl wait -l compute.functionmesh.io/name=generic-kafka-function --for=condition=Ready pod --timeout=2m || {

0 commit comments

Comments
 (0)