Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题

最近在使用Spring Cloud搭建配置中心的实例以及简易应用的时候,遇到了一个非常奇怪的问题。

 

项目结构

使用java -jar的方式启动了eureka注册中心集群(3台部署),一台zuul负责转发请求到服务,service-hi服务集群(2台部署),配置中心由一台server服务器和两台client构建而成。

 

需求

调用zuul,负载均衡到service-hi服务器,在service-hi服务器中通过feign的方式调用配置中心client中的key为foo的配置,并返回浏览器输出foo的值。之后,在git仓库修改foo的值,通过消息总线(RabbitMQ)更新配置文件,再次访问,查看配置内容是否成功更新。

 

出现的问题

在用消息总线refresh之前,调用正常,浏览器能成功返回foo的值。注册中心实例包括zuul*1,service-hi*2,server-config*1,client-config*2。

在用消息总线refresh之后,注册中心丢失client-config*2的实例,是丢失,不是down的状态。导致service-hi调用client-config时报错。单独通过client-config访问更新的配置信息,显示更新成功后的内容。

 

用消息总线refresh之前相关信息的截图:

注册中心集群中已经注册的实例:

Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题_第1张图片

 

service-hi中通过feign调用client-config

Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题_第2张图片

 

刷新消息总线前,访问zuul,成功获取到配置文件的值

Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题_第3张图片

 

 

使用消息总线更新配置之后的一些信息截图:

更新git仓库属性的值

Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题_第4张图片

 

使用post请求更新配置后client端产生的日志(日志中RejectedExecutionException异常,官方工程师声明该异常的确存在,但不影响程序运行):

2018-07-19 15:00:58.030  INFO 11780 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5f683daf: startup date [Thu Jul 19 15:00:58 CST 2018]; root of context hierarchy
2018-07-19 15:00:58.970  INFO 11780 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-07-19 15:00:59.033  INFO 11780 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$fcf3eb8e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:01:00.004  INFO 11780 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2018-07-19 15:01:00.239  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2018-07-19 15:01:01.186  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2018-07-19 15:01:01.186  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2018-07-19 15:01:01.392  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2018-07-19 15:01:01.392  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2018-07-19 15:01:01.795  INFO 11780 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2018-07-19 15:01:02.060  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2018-07-19 15:01:02.060  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2018-07-19 15:01:02.060  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2018-07-19 15:01:02.061  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false
2018-07-19 15:01:02.061  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2018-07-19 15:01:02.061  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2018-07-19 15:01:02.061  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2018-07-19 15:01:02.409  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200
2018-07-19 15:01:02.413  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Not registering with Eureka server per configuration
2018-07-19 15:01:02.420  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1531983662420 with initial instances count: 5

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.6.RELEASE)

2018-07-19 15:01:03.255  INFO 11780 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://10.131.23.184:8770/
2018-07-19 15:01:14.937  INFO 11780 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=client-config, profiles=[test], label=master, version=d751349016e7d7a17ac9b14a570234cadb0ef399, state=null
2018-07-19 15:01:14.939  INFO 11780 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource [name='configClient'], MapPropertySource [name='https://github.com/Vincent6311/test/client-config-test.properties'], MapPropertySource [name='https://github.com/Vincent6311/test/application-test.properties']]]
2018-07-19 15:01:14.946  INFO 11780 --- [           main] com.forezp.DigitalClientConfigApp        : No active profile set, falling back to default profiles: default
2018-07-19 15:01:15.011  INFO 11780 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5ea4300e: startup date [Thu Jul 19 15:01:15 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5f683daf
2018-07-19 15:01:16.461  INFO 11780 --- [           main] o.s.i.config.IntegrationRegistrar        : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2018-07-19 15:01:17.426  INFO 11780 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=82e7a661-e702-3221-928d-061e89957668
2018-07-19 15:01:17.448  INFO 11780 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2018-07-19 15:01:17.454  INFO 11780 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2018-07-19 15:01:17.474  INFO 11780 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-07-19 15:01:17.557  INFO 11780 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration' of type [org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration$$EnhancerBySpringCGLIB$$a745a6bf] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:01:17.839  INFO 11780 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration' of type [org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration$$EnhancerBySpringCGLIB$$13068ed2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:01:18.046  INFO 11780 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationGlobalProperties' of type [org.springframework.beans.factory.config.PropertiesFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:01:18.053  INFO 11780 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationGlobalProperties' of type [java.util.Properties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:01:18.109  INFO 11780 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$fcf3eb8e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:01:18.123  INFO 11780 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.config.BindingServiceConfiguration$PostProcessorConfiguration' of type [org.springframework.cloud.stream.config.BindingServiceConfiguration$PostProcessorConfiguration$$EnhancerBySpringCGLIB$$a2a18696] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:01:18.853  INFO 11780 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8771 (http)
2018-07-19 15:01:18.879  INFO 11780 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2018-07-19 15:01:18.882  INFO 11780 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.16
2018-07-19 15:01:19.152  INFO 11780 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-07-19 15:01:19.152  INFO 11780 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 4144 ms
2018-07-19 15:01:19.708  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2018-07-19 15:01:19.715  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'metricsFilter' to: [/*]
2018-07-19 15:01:19.716  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-07-19 15:01:19.716  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-07-19 15:01:19.716  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-07-19 15:01:19.716  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2018-07-19 15:01:19.716  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'webRequestLoggingFilter' to: [/*]
2018-07-19 15:01:19.717  INFO 11780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'applicationContextIdFilter' to: [/*]
2018-07-19 15:01:21.169  INFO 11780 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5ea4300e: startup date [Thu Jul 19 15:01:15 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5f683daf
2018-07-19 15:01:21.368  INFO 11780 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/param],methods=[GET]}" onto public java.lang.String com.forezp.controller.ConfigClientController.getParam(java.lang.String)
2018-07-19 15:01:21.369  INFO 11780 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/foo]}" onto public java.lang.String com.forezp.controller.ConfigClientController.getFoo()
2018-07-19 15:01:21.370  INFO 11780 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/foo1]}" onto public java.lang.String com.forezp.controller.ConfigClientController.getFoo1()
2018-07-19 15:01:21.374  INFO 11780 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-07-19 15:01:21.375  INFO 11780 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-07-19 15:01:21.510  INFO 11780 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-19 15:01:21.510  INFO 11780 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-19 15:01:21.633  INFO 11780 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-19 15:01:22.859  INFO 11780 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService  'taskScheduler'
2018-07-19 15:01:23.536  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/health || /health.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(javax.servlet.http.HttpServletRequest,java.security.Principal)
2018-07-19 15:01:23.537  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/pause || /pause.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2018-07-19 15:01:23.540  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/loggers/{name:.*}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.LoggersMvcEndpoint.get(java.lang.String)
2018-07-19 15:01:23.541  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/loggers/{name:.*}],methods=[POST],consumes=[application/vnd.spring-boot.actuator.v1+json || application/json],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.LoggersMvcEndpoint.set(java.lang.String,java.util.Map)
2018-07-19 15:01:23.541  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/loggers || /loggers.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.542  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/beans || /beans.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.543  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/features || /features.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.544  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/autoconfig || /autoconfig.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.545  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/service-registry/instance-status],methods=[GET]}" onto public org.springframework.http.ResponseEntity org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint.getStatus()
2018-07-19 15:01:23.546  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/service-registry/instance-status],methods=[POST]}" onto public org.springframework.http.ResponseEntity org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint.setStatus(java.lang.String)
2018-07-19 15:01:23.547  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/configprops || /configprops.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.548  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/restart || /restart.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.restart.RestartMvcEndpoint.invoke()
2018-07-19 15:01:23.548  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/bus/refresh],methods=[POST]}" onto public void org.springframework.cloud.bus.endpoint.RefreshBusEndpoint.refresh(java.lang.String)
2018-07-19 15:01:23.549  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/heapdump || /heapdump.json],methods=[GET],produces=[application/octet-stream]}" onto public void org.springframework.boot.actuate.endpoint.mvc.HeapdumpMvcEndpoint.invoke(boolean,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.io.IOException,javax.servlet.ServletException
2018-07-19 15:01:23.555  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/trace || /trace.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.571  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.value(java.util.Map)
2018-07-19 15:01:23.571  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env/reset],methods=[POST]}" onto public java.util.Map org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.reset()
2018-07-19 15:01:23.573  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/info || /info.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.574  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/mappings || /mappings.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.575  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/dump || /dump.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.579  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/auditevents || /auditevents.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public org.springframework.http.ResponseEntity org.springframework.boot.actuate.endpoint.mvc.AuditEventsMvcEndpoint.findByPrincipalAndAfterAndType(java.lang.String,java.util.Date,java.lang.String)
2018-07-19 15:01:23.584  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/refresh || /refresh.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2018-07-19 15:01:23.585  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/resume || /resume.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2018-07-19 15:01:23.586  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env/{name:.*}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EnvironmentMvcEndpoint.value(java.lang.String)
2018-07-19 15:01:23.587  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env || /env.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.588  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/metrics/{name:.*}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.MetricsMvcEndpoint.value(java.lang.String)
2018-07-19 15:01:23.589  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/metrics || /metrics.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:23.589  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/bus/env],methods=[POST]}" onto public void org.springframework.cloud.bus.endpoint.EnvironmentBusEndpoint.env(java.util.Map,java.lang.String)
2018-07-19 15:01:23.590  INFO 11780 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/archaius || /archaius.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-19 15:01:24.423  WARN 11780 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2018-07-19 15:01:24.423  INFO 11780 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2018-07-19 15:01:24.435  WARN 11780 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2018-07-19 15:01:24.435  INFO 11780 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2018-07-19 15:01:24.543  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...
2018-07-19 15:01:24.571  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Completed shut down of DiscoveryClient
2018-07-19 15:01:24.692  INFO 11780 --- [           main] o.s.i.codec.kryo.CompositeKryoRegistrar  : configured Kryo registration [40, java.io.File] with serializer org.springframework.integration.codec.kryo.FileSerializer
2018-07-19 15:01:24.943  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2018-07-19 15:01:24.960  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure
2018-07-19 15:01:24.962  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'rabbitConnectionFactory' has been autodetected for JMX exposure
2018-07-19 15:01:24.963  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'integrationMbeanExporter' has been autodetected for JMX exposure
2018-07-19 15:01:24.966  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2018-07-19 15:01:24.967  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshEndpoint' has been autodetected for JMX exposure
2018-07-19 15:01:24.968  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'restartEndpoint' has been autodetected for JMX exposure
2018-07-19 15:01:24.969  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentBusEndpoint' has been autodetected for JMX exposure
2018-07-19 15:01:24.970  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshBusEndpoint' has been autodetected for JMX exposure
2018-07-19 15:01:24.972  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'serviceRegistryEndpoint' has been autodetected for JMX exposure
2018-07-19 15:01:24.974  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure
2018-07-19 15:01:24.979  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2018-07-19 15:01:25.003  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentBusEndpoint': registering with JMX server as MBean [org.springframework.cloud.bus.endpoint:name=environmentBusEndpoint,type=EnvironmentBusEndpoint]
2018-07-19 15:01:25.016  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'restartEndpoint': registering with JMX server as MBean [org.springframework.cloud.context.restart:name=restartEndpoint,type=RestartEndpoint]
2018-07-19 15:01:25.045  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'serviceRegistryEndpoint': registering with JMX server as MBean [org.springframework.cloud.client.serviceregistry.endpoint:name=serviceRegistryEndpoint,type=ServiceRegistryEndpoint]
2018-07-19 15:01:25.057  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshBusEndpoint': registering with JMX server as MBean [org.springframework.cloud.bus.endpoint:name=refreshBusEndpoint,type=RefreshBusEndpoint]
2018-07-19 15:01:25.071  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2018-07-19 15:01:25.087  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'integrationMbeanExporter': registering with JMX server as MBean [org.springframework.integration.monitor:name=integrationMbeanExporter,type=IntegrationMBeanExporter]
2018-07-19 15:01:25.129  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=5ea4300e,type=ConfigurationPropertiesRebinder]
2018-07-19 15:01:25.139  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'rabbitConnectionFactory': registering with JMX server as MBean [org.springframework.amqp.rabbit.connection:name=rabbitConnectionFactory,type=CachingConnectionFactory]
2018-07-19 15:01:25.149  INFO 11780 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshEndpoint': registering with JMX server as MBean [org.springframework.cloud.endpoint:name=refreshEndpoint,type=RefreshEndpoint]
2018-07-19 15:01:25.158  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Registering beans for JMX exposure on startup
2018-07-19 15:01:25.159  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel errorChannel
2018-07-19 15:01:25.164  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Located managed bean 'org.springframework.integration:type=MessageChannel,name=errorChannel': registering with JMX server as MBean [org.springframework.integration:type=MessageChannel,name=errorChannel]
2018-07-19 15:01:25.237  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel springCloudBusInput
2018-07-19 15:01:25.240  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Located managed bean 'org.springframework.integration:type=MessageChannel,name=springCloudBusInput': registering with JMX server as MBean [org.springframework.integration:type=MessageChannel,name=springCloudBusInput]
2018-07-19 15:01:25.266  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel nullChannel
2018-07-19 15:01:25.269  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Located managed bean 'org.springframework.integration:type=MessageChannel,name=nullChannel': registering with JMX server as MBean [org.springframework.integration:type=MessageChannel,name=nullChannel]
2018-07-19 15:01:25.299  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel springCloudBusOutput
2018-07-19 15:01:25.302  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Located managed bean 'org.springframework.integration:type=MessageChannel,name=springCloudBusOutput': registering with JMX server as MBean [org.springframework.integration:type=MessageChannel,name=springCloudBusOutput]
2018-07-19 15:01:25.337  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageHandler errorLogger
2018-07-19 15:01:25.339  INFO 11780 --- [           main] o.s.i.monitor.IntegrationMBeanExporter   : Located managed bean 'org.springframework.integration:type=MessageHandler,name=errorLogger,bean=internal': registering with JMX server as MBean [org.springframework.integration:type=MessageHandler,name=errorLogger,bean=internal]
2018-07-19 15:01:25.992  INFO 11780 --- [           main] o.s.integration.channel.DirectChannel    : Channel 'client-config:8771.springCloudBusInput' has 1 subscriber(s).
2018-07-19 15:01:25.999  INFO 11780 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase -2147482648
2018-07-19 15:01:26.802  INFO 11780 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://localhost:8770/
2018-07-19 15:01:32.406  INFO 11780 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=client-config, profiles=[test], label=master, version=d751349016e7d7a17ac9b14a570234cadb0ef399, state=null
2018-07-19 15:01:32.407  INFO 11780 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource [name='configClient'], MapPropertySource [name='https://github.com/Vincent6311/test/client-config-test.properties'], MapPropertySource [name='https://github.com/Vincent6311/test/application-test.properties']]]
2018-07-19 15:01:32.411  INFO 11780 --- [           main] com.forezp.DigitalClientConfigApp        : No active profile set, falling back to default profiles: default
2018-07-19 15:01:32.416  INFO 11780 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@2b06f498: startup date [Thu Jul 19 15:01:32 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5ea4300e
2018-07-19 15:01:32.494  INFO 11780 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-07-19 15:01:32.587  INFO 11780 --- [           main] o.s.c.support.GenericApplicationContext  : Refreshing org.springframework.context.support.GenericApplicationContext@3085befb: startup date [Thu Jul 19 15:01:32 CST 2018]; root of context hierarchy
2018-07-19 15:01:32.677  INFO 11780 --- [           main] com.forezp.DigitalClientConfigApp        : Started DigitalClientConfigApp in 6.644 seconds (JVM running for 36.859)
2018-07-19 15:01:33.236  INFO 11780 --- [           main] o.s.a.r.c.CachingConnectionFactory       : Created new connection: rabbitConnectionFactory#140cfc5f:0/SimpleConnection@5a5b394 [delegate=amqp://[email protected]:5672/, localPort= 49475]
2018-07-19 15:01:33.315  INFO 11780 --- [           main] o.s.integration.channel.DirectChannel    : Channel 'client-config:8771.springCloudBusOutput' has 1 subscriber(s).
2018-07-19 15:01:33.316  INFO 11780 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 0
2018-07-19 15:01:33.328  INFO 11780 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2018-07-19 15:01:33.351  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2018-07-19 15:01:33.365  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2018-07-19 15:01:33.365  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2018-07-19 15:01:33.365  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2018-07-19 15:01:33.365  INFO 11780 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2018-07-19 15:01:33.516  INFO 11780 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2018-07-19 15:01:33.518  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2018-07-19 15:01:33.518  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2018-07-19 15:01:33.519  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2018-07-19 15:01:33.519  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false
2018-07-19 15:01:33.519  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2018-07-19 15:01:33.519  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2018-07-19 15:01:33.519  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2018-07-19 15:01:33.536  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200
2018-07-19 15:01:33.537  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30
2018-07-19 15:01:33.542  INFO 11780 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
2018-07-19 15:01:33.545  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1531983693545 with initial instances count: 5
2018-07-19 15:01:33.606  INFO 11780 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application client-config with eureka with status UP
2018-07-19 15:01:33.607  INFO 11780 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1531983693607, current=UP, previous=STARTING]
2018-07-19 15:01:33.666  INFO 11780 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CLIENT-CONFIG/10.131.23.184:client-config:8771: registering service...
2018-07-19 15:01:33.690  INFO 11780 --- [           main] o.s.i.endpoint.EventDrivenConsumer       : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2018-07-19 15:01:33.690  INFO 11780 --- [           main] o.s.i.channel.PublishSubscribeChannel    : Channel 'client-config:8771.errorChannel' has 1 subscriber(s).
2018-07-19 15:01:33.690  INFO 11780 --- [           main] o.s.i.endpoint.EventDrivenConsumer       : started _org.springframework.integration.errorLogger
2018-07-19 15:01:33.690  INFO 11780 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 2147482647
2018-07-19 15:01:33.717  INFO 11780 --- [           main] c.s.b.r.p.RabbitExchangeQueueProvisioner : declaring queue for inbound: springCloudBus.anonymous.Xmr1QuRsRrySnFkj-FaOzQ, bound to: springCloudBus
2018-07-19 15:01:33.756  INFO 11780 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CLIENT-CONFIG/10.131.23.184:client-config:8771 - registration status: 204
2018-07-19 15:01:33.893  INFO 11780 --- [           main] o.s.i.a.i.AmqpInboundChannelAdapter      : started inbound.springCloudBus.anonymous.Xmr1QuRsRrySnFkj-FaOzQ
2018-07-19 15:01:33.894  INFO 11780 --- [           main] o.s.i.endpoint.EventDrivenConsumer       : Adding {message-handler:inbound.springCloudBus.default} as a subscriber to the 'bridge.springCloudBus' channel
2018-07-19 15:01:33.894  INFO 11780 --- [           main] o.s.i.endpoint.EventDrivenConsumer       : started inbound.springCloudBus.default
2018-07-19 15:01:33.895  INFO 11780 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 2147483647
2018-07-19 15:01:34.028  INFO 11780 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8771 (http)
2018-07-19 15:01:34.030  INFO 11780 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8771
2018-07-19 15:01:34.036  INFO 11780 --- [           main] com.forezp.DigitalClientConfigApp        : Started DigitalClientConfigApp in 37.481 seconds (JVM running for 38.217)
2018-07-19 15:05:50.677  INFO 11780 --- [nio-8771-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-07-19 15:05:50.677  INFO 11780 --- [nio-8771-exec-2] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2018-07-19 15:05:51.493  INFO 11780 --- [nio-8771-exec-2] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 815 ms
2018-07-19 15:06:02.086  WARN 11780 --- [ver-bootstrap-0] c.netflix.discovery.TimedSupervisorTask  : task supervisor shutting down, reject the task

java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@4693e3be rejected from java.util.concurrent.ThreadPoolExecutor@4854051c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063) ~[na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) [na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) [na:1.8.0_171]
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) ~[na:1.8.0_171]
    at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:61) ~[eureka-client-1.6.1.jar:1.6.1]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_171]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_171]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_171]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_171]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]

2018-07-19 15:06:33.529  INFO 11780 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2018-07-19 15:10:17.946  INFO 11780 --- [nio-8771-exec-7] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@127383a6: startup date [Thu Jul 19 15:10:17 CST 2018]; root of context hierarchy
2018-07-19 15:10:18.043  INFO 11780 --- [nio-8771-exec-7] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-07-19 15:10:18.096  INFO 11780 --- [nio-8771-exec-7] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$fcf3eb8e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-19 15:10:19.980  INFO 11780 --- [nio-8771-exec-7] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2018-07-19 15:10:20.036  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2018-07-19 15:10:20.057  INFO 11780 --- [nio-8771-exec-7] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2018-07-19 15:10:20.058  INFO 11780 --- [nio-8771-exec-7] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2018-07-19 15:10:20.059  INFO 11780 --- [nio-8771-exec-7] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2018-07-19 15:10:20.059  INFO 11780 --- [nio-8771-exec-7] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2018-07-19 15:10:20.311  INFO 11780 --- [nio-8771-exec-7] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2018-07-19 15:10:20.313  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2018-07-19 15:10:20.313  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2018-07-19 15:10:20.314  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2018-07-19 15:10:20.314  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Application is null : false
2018-07-19 15:10:20.314  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2018-07-19 15:10:20.314  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2018-07-19 15:10:20.314  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2018-07-19 15:10:21.304  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : The response status is 200
2018-07-19 15:10:21.309  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Not registering with Eureka server per configuration
2018-07-19 15:10:21.310  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1531984221310 with initial instances count: 7
2018-07-19 15:10:22.505  INFO 11780 --- [nio-8771-exec-7] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://10.131.23.184:8770/
2018-07-19 15:10:36.776  INFO 11780 --- [nio-8771-exec-7] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=client-config, profiles=[test], label=master, version=fcbce8e74bff3656a095b4d4806de57a8e7134e4, state=null
2018-07-19 15:10:36.776  INFO 11780 --- [nio-8771-exec-7] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource [name='configClient'], MapPropertySource [name='https://github.com/Vincent6311/test/client-config-test.properties'], MapPropertySource [name='https://github.com/Vincent6311/test/application-test.properties']]]
2018-07-19 15:10:36.780  INFO 11780 --- [nio-8771-exec-7] o.s.boot.SpringApplication               : No active profile set, falling back to default profiles: default
2018-07-19 15:10:36.784  INFO 11780 --- [nio-8771-exec-7] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3f90ed69: startup date [Thu Jul 19 15:10:36 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@127383a6
2018-07-19 15:10:36.788  INFO 11780 --- [nio-8771-exec-7] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-07-19 15:10:36.811  INFO 11780 --- [nio-8771-exec-7] o.s.boot.SpringApplication               : Started application in 19.765 seconds (JVM running for 580.977)
2018-07-19 15:10:36.811  INFO 11780 --- [nio-8771-exec-7] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@3f90ed69: startup date [Thu Jul 19 15:10:36 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@127383a6
2018-07-19 15:10:37.393  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...
2018-07-19 15:10:37.395  INFO 11780 --- [nio-8771-exec-7] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2018-07-19 15:10:37.397  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Unregistering ...
2018-07-19 15:10:37.403  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CLIENT-CONFIG/10.131.23.184:client-config:8771 - deregister  status: 200
2018-07-19 15:10:37.417  INFO 11780 --- [nio-8771-exec-7] com.netflix.discovery.DiscoveryClient    : Completed shut down of DiscoveryClient
2018-07-19 15:10:37.418  INFO 11780 --- [nio-8771-exec-7] o.s.c.n.e.s.EurekaServiceRegistry        : Unregistering application client-config with eureka with status DOWN
2018-07-19 15:10:37.418  INFO 11780 --- [nio-8771-exec-7] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application client-config with eureka with status UP
2018-07-19 15:10:37.421  INFO 11780 --- [nio-8771-exec-7] o.s.cloud.bus.event.RefreshListener      : Received remote refresh request. Keys refreshed [config.client.version, foo]
2018-07-19 15:11:33.539  WARN 11780 --- [ver-bootstrap-0] c.netflix.discovery.TimedSupervisorTask  : task supervisor shutting down, reject the task

java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@73afd962 rejected from java.util.concurrent.ThreadPoolExecutor@779043cf[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063) ~[na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) [na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) [na:1.8.0_171]
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) ~[na:1.8.0_171]
    at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:61) ~[eureka-client-1.6.1.jar:1.6.1]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_171]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_171]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_171]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_171]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]

 

再次访问zuul,报错

Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题_第5张图片

单独访问client-config,显示已修改后的值

Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题_第6张图片

 

此时再查看注册中心,client-config实例全部丢失。

Spring Cloud - - - 通过消息总线更新配置中心,导致client-config服务实例在注册中心全部丢失的问题_第7张图片

 

 

server-config,client-config无报错信息,实际执行逻辑的service-hi报错信息如下(因为注册中心实例已丢失):

 

不太明白这个到底是什么原因造成的,十分困惑。

你可能感兴趣的:(疑难杂症)