spring-cloud / spring-cloud/spring-cloud-zookeeper
Unable to provide multiple zookeeper host via spring.config.import property
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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