nacos-group / nacos-spring-boot-project

Nacos ECO Project for Spring Boot
Apache License 2.0
788 stars 424 forks source link

auto refresh doesn't work #55

Open spawpaw opened 5 years ago

spawpaw commented 5 years ago

Description

Nacos springboot cant pull the latest config from the config server

How to Reproduce

there's a key named version in my application.properties, and I add it from 1.1.6 to 1.1.20 in nacos console, nacos doesn't pull this config correctly:

2019-08-23 14:00:39.470  INFO 1152 --- [er-ThreadPool-2] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.6   ....
2019-08-23 14:01:13.912  INFO 1152 --- [er-ThreadPool-3] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.7   ....
2019-08-23 14:01:24.527  INFO 1152 --- [er-ThreadPool-4] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.8   ....
2019-08-23 14:01:37.239  INFO 1152 --- [er-ThreadPool-1] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.9   ....
2019-08-23 14:02:02.870  INFO 1152 --- [er-ThreadPool-2] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.10   ....
2019-08-23 14:02:09.983  INFO 1152 --- [er-ThreadPool-3] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.11   ....
2019-08-23 14:07:18.678  INFO 1152 --- [er-ThreadPool-4] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.11   .... //the latest value is 1.1.12, but nacos pulled 1.1.11
2019-08-23 14:07:27.893  INFO 1152 --- [er-ThreadPool-1] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.13   ....
2019-08-23 14:09:58.189  INFO 1152 --- [er-ThreadPool-2] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.13   .... //the latest value is 1.1.14, but nacos pulled 1.1.13
2019-08-23 14:10:12.199  INFO 1152 --- [er-ThreadPool-3] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.15   ....
2019-08-23 14:10:51.057  INFO 1152 --- [er-ThreadPool-4] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.16   ....
2019-08-23 14:10:58.868  INFO 1152 --- [er-ThreadPool-1] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.17   ....
2019-08-23 14:14:15.813  INFO 1152 --- [er-ThreadPool-2] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.17   .... //the latest value is 1.1.18, but nacos pulled 1.1.17
2019-08-23 14:14:33.848  INFO 1152 --- [er-ThreadPool-3] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.19   ....
2019-08-23 14:14:43.958  INFO 1152 --- [er-ThreadPool-4] .LoggingNacosConfigMetadataEventListener : Nacos Config Metadata : ...., bean='(version=1.1.20   ....

Enviroment

mvn dependency:

com.alibaba.boot: nacos-config-spring-boot-starter: 0.2.3 com.alibaba.boot: nacos-config-spring-boot-actuator: 0.2.3

server

both nacos-server v1.1.3 and AliyunACM(Application Configuration Management)

chuntaojun commented 5 years ago

You mean there is updated news LouShou problem is? Convenient to inform your configuration updates a task run again?