spring-cloud / spring-cloud/spring-cloud-commons
@RefreshScope breaks SmartLifecycle
Open
Nobody has claimed this yet.
waiting for votes
- Dominant language
- Java
- Stars
- 751
- Forks
- 744
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
A SmartLifecycle (or probably Lifecycle) bean annotated with @RefreshScope and isAutoStartup() returns true will not call start(). See https://github.com/dturanski/spring-cloud-refresh-scope-lifecycle
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 reproduction linked in the issue, focusing on the @RefreshScope bean and its SmartLifecycle or Lifecycle implementation. Trace how isAutoStartup() and refresh-scope initialization interact, then verify that an auto-startup lifecycle bean receives start() after the fix using the reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100