spring-cloud / spring-cloud/spring-cloud-zookeeper

Unable to provide multiple zookeeper host via spring.config.import property

Open
#314 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
574
Forks
408
Avg merge
1d 12h
Merged PRs (30d)
4

Description

We have a case where we need to provide multiple ip addresses to spring cloud zookeeper (one for each node in the cluster)
We tried to use spring.config.import=zookeeper:ip1:2181,ip2:2181,ip3:2181 Spring Boot fails to start with an error stating
that ip3:2181 can't be loaded.

It is easily verified by creating the minimal spring boot application when spring cloud config zookeeper and add the following property
spring.config.import=zookeeper:localhost:2181,localhost:2181

Do we need to use another syntax to provide the list of ip addresses to Spring Cloud Config ZooKeeper?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal Spring Boot application described in the issue and reproduce the failure using spring.config.import with multiple ZooKeeper addresses. Trace how that property is parsed and determine the accepted syntax for multiple hosts; done means the application starts successfully with the documented multi-host configuration and has a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
cloud, distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.