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

CuratorFrameworkCustomizer can't be injected when "spring-cloud-starter-zookeeper-config" on the classpath

Open
#249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
574
Forks
408
Avg merge
1d 12h
Merged PRs (30d)
4

Description

SpringBoot: 2.3.0.Release
SpringCloud: Hoxton.SR5
I want to config CuratorFramework by declaring CuratorFrameworkCustomizer as a bean. if only "spring-cloud-starter-zookeeper-discovery" on the classpath, CuratorFrameworkCustomizer can be injected into "ZooKeeperAutoConfiguration". But if I use "spring-cloud-starter-zookeeper-config" at the same time OR only use "spring-cloud-starter-zookeeper-config", it doesn't works. CuratorFrameworkCustomizer can't be injected.
I watched that "ZooKeeperAutoConfiguration" was loaded in different order.

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 by reproducing the issue with spring-cloud-starter-zookeeper-discovery and spring-cloud-starter-zookeeper-config, then inspect ZooKeeperAutoConfiguration and CuratorFrameworkCustomizer injection ordering. Done means a declared CuratorFrameworkCustomizer bean can be injected in both classpath combinations described.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend, 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.