向configserver POST /bus/refresh后所有关联服务包括configserver从注册中心断开

server配置:
spring.application.name=config-server
server.port=6007
eureka.client.serviceUrl.defaultZone=http://127.0.0.1:6006/eureka
spring.cloud.config.server.git.uri=http://xxxx
spring.cloud.config.server.git.searchPaths=xxx
spring.cloud.config.server.git.username=xx
spring.cloud.config.server.git.password=xx
spring.cloud.stream.kafka.binder.zk-nodes=127.0.0.1:2181
spring.cloud.stream.kafka.binder.brokers=127.0.0.1:9092
 
/bus/refresh后configserver的log:
2017-06-05 16:21:12,059  INFO http-nio-6007-exec-5 o.s.b.f.a.AutowiredAnnotationBeanPostProcessor:155 - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-06-05 16:21:12,077  INFO http-nio-6007-exec-5 o.s.b.SpringApplication:57 - Started application in 0.435 seconds (JVM running for 260.34)
2017-06-05 16:21:12,077  INFO http-nio-6007-exec-5 o.s.c.a.AnnotationConfigApplicationContext:987 - Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@67558dfc: startup date [Mon Jun 05 16:21:12 CST 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@2a43ee69
2017-06-05 16:21:12,601  INFO http-nio-6007-exec-5 c.n.d.DiscoveryClient:852 - Shutting down DiscoveryClient ...
2017-06-05 16:21:12,602  INFO http-nio-6007-exec-5 o.s.c.n.e.InstanceInfoFactory:70 - Setting initial instance status as: STARTING
2017-06-05 16:21:12,603  INFO http-nio-6007-exec-5 c.n.d.DiscoveryClient:884 - Unregistering ...
2017-06-05 16:21:12,610  INFO http-nio-6007-exec-5 c.n.d.DiscoveryClient:886 - DiscoveryClient_CONFIG-SERVER/192.168.204.70:config-server:6007 - deregister  status: 200
2017-06-05 16:21:12,614  INFO http-nio-6007-exec-5 c.n.d.DiscoveryClient:873 - Completed shut down of DiscoveryClient
2017-06-05 16:21:12,615  INFO http-nio-6007-exec-5 o.s.c.n.e.s.EurekaServiceRegistry:64 - Unregistering application config-server with eureka with status DOWN
2017-06-05 16:21:12,615  INFO http-nio-6007-exec-5 o.s.c.n.e.s.EurekaServiceRegistry:40 - Registering application config-server with eureka with status UP
2017-06-05 16:21:12,616  INFO http-nio-6007-exec-5 o.s.c.b.e.RefreshListener:44 - Received remote refresh request. Keys refreshed
 
 
不改变配置,切换到brixton版本,一切正常
 
 
 
 
 
已邀请:

itmuch.com - 《Spring Cloud与Docker微服务架构实战》作者

赞同来自: xiaobaxi maxxx

这是个bug。参考:https://github.com/spring-cloud/spring-cloud-netflix/issues/1857
在spring cloud dalston SR1解决了。可以试试。

要回复问题请先登录注册