Skip to content

ATLAS-4764: CuratorFrameWork should work only with Zookeeper HA mode#587

Open
pareshddevalia wants to merge 1 commit intoapache:masterfrom
pareshddevalia:ATLAS-4764
Open

ATLAS-4764: CuratorFrameWork should work only with Zookeeper HA mode#587
pareshddevalia wants to merge 1 commit intoapache:masterfrom
pareshddevalia:ATLAS-4764

Conversation

@pareshddevalia
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Disable ZooKeeper/Curator initialization when HA is not enabled: CuratorFactory now initializes CuratorFramework only when atlas.server.ha.enabled is explicitly present and set to true. This avoids attempting ZooKeeper connections in non-HA setups.

Remove legacy code for ZooKeeper connect string: HAConfiguration.getZookeeperProperties() no longer falls back to atlas.kafka.zookeeper.connect when atlas.server.ha.zookeeper.connect is missing; it now uses an empty connect string

How was this patch tested?

Unit tests: Updated/added tests for HAConfiguration and CuratorFactory (locally).
Docker validation: Verified Atlas startup with default atlas.server.ha.enabled=false

Testing : Tested locally. By default atlas.server.ha.enabled=false
Docker tested with Atlas startup.
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.

2 participants