apache / apache/incubator-seata

seata 使用nacos配置中心,修改配置后缓存刷新的问题

Open
#3,785 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

使用nacos作为seata的配置中心,修改后配置没有实时刷新。
必须要调用seata\config\seata-config-core\src\main\java\io\seata\config\ConfigurationCache.java中public static void addConfigListener(String dataId, ConfigurationChangeListener... listeners)方法才能刷新缓存吗?

项目中配置变更后没有其他额外要做的操作,只想nacos配置修改后,seata也实时更新即可。
若有大量配置(dataId很多),都想实时刷新,应该怎么操作?

Contributor guide

Open the contributing guide

Research direction

Start with seata-config-core/src/main/java/io/seata/config/ConfigurationCache.java, especially addConfigListener(String dataId, ConfigurationChangeListener... listeners), and trace how the Nacos configuration center connects to it. Determine how configuration changes are expected to propagate without manual calls, including when many dataIds are configured. Done means a documented or tested approach exists for real-time refresh after Nacos changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.