Skip to content

fix: Improve Zookeeper initialization wait logic to support multi url configuration store - #671

Merged
lhotari merged 5 commits into
apache:masterfrom
ganeshkalyank:fix-zk-cs-init
Apr 27, 2026
Merged

lhotari merged 5 commits into
apache:masterfrom
ganeshkalyank:fix-zk-cs-init

Conversation

@ganeshkalyank

Copy link
Copy Markdown
Contributor

Fixes #670

Motivation

When using a multi-URL configuration store (e.g., zk1:2181,zk2:2181), the wait-zk-cs-ready init container fails because nslookup cannot resolve comma-separated hostnames. This causes initialization to time out even when ZooKeeper is already accessible.

Modifications

Replaced nslookup with bin/pulsar zookeeper-shell -server ls /, which supports the full ZooKeeper connection string including multi-URL formats.

Verifying this change

  • Make sure that the change passes the CI checks.

Copilot AI review requested due to automatic review settings March 28, 2026 05:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Pulsar Helm chart’s cluster-initialization Job to wait for a multi-URL ZooKeeper configuration store using a ZooKeeper-aware command instead of DNS lookup, addressing init failures when configurationStore contains comma-separated hosts.

Changes:

  • Replace nslookup-based waiting for configurationStore with bin/pulsar zookeeper-shell ... ls / polling.
  • Set a smaller JVM heap (PULSAR_MEM) for the wait probe to reduce init-container memory usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lhotari

lhotari commented Mar 31, 2026

Copy link
Copy Markdown
Member

please check copilot's review comments

@ganeshkalyank

ganeshkalyank commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor Author

@lhotari addressed both the comments. also, assumed that configuration store deployment uses the same tls settings as zookeeper.

@lhotari
lhotari merged commit 8b47d1e into apache:master Apr 27, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cluster initialization fails when using multi url config store

3 participants