This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new 71ba624 Enable local sessions in ZK when readonly mode is enabled
(#655)
71ba624 is described below
commit 71ba62418ee3f0c649f66dec573fb71ca794af3c
Author: Lari Hotari <[email protected]>
AuthorDate: Tue Feb 24 13:16:49 2026 +0200
Enable local sessions in ZK when readonly mode is enabled (#655)
---
charts/pulsar/templates/zookeeper-configmap.yaml | 4 ++++
charts/pulsar/values.yaml | 1 +
2 files changed, 5 insertions(+)
diff --git a/charts/pulsar/templates/zookeeper-configmap.yaml
b/charts/pulsar/templates/zookeeper-configmap.yaml
index 601d448..cbb1ab6 100755
--- a/charts/pulsar/templates/zookeeper-configmap.yaml
+++ b/charts/pulsar/templates/zookeeper-configmap.yaml
@@ -42,5 +42,9 @@ data:
PULSAR_PREFIX_serverCnxnFactory:
org.apache.zookeeper.server.NIOServerCnxnFactory
serverCnxnFactory: org.apache.zookeeper.server.NIOServerCnxnFactory
{{- end }}
+ {{- if .Values.pulsar_metadata.metadataStoreAllowReadOnlyOperations }}
+ PULSAR_PREFIX_localSessionsEnabled: "true"
+ PULSAR_PREFIX_localSessionsUpgradingEnabled: "true"
+ {{- end }}
{{ toYaml .Values.zookeeper.configData | indent 2 }}
{{- end }}
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index 4b23e8a..e9eada7 100755
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -1025,6 +1025,7 @@ pulsar_metadata:
## Allow read-only operations on the metadata store when the metadata store
is not available.
## This is useful when you want to continue serving requests even if the
metadata store is not fully available with quorum.
+ ## NOTICE: This mode is not recommended for production use and no tests
exist to validate the behavior.
metadataStoreAllowReadOnlyOperations: false
## The session timeout for the metadata store in milliseconds.