Commit 4522b14
committed
fix: use config snapshot in NacosConfigDataLoader to fix stale config in cluster mode
Fixes #4296. The config snapshot mechanism from PR #3644 was not applied to the
Spring Boot 3.x ConfigData API path (NacosConfigDataLoader). In Nacos cluster mode,
when a config change notification arrives from one node but the fetch goes to another
node that hasn't synced yet, the client gets stale config.
Assisted-by: Hermes Agent1 parent ff1e3fb commit 4522b14
1 file changed
Lines changed: 6 additions & 1 deletion
File tree
- spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/configdata
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| |||
0 commit comments