春季启动 - 2.0.5.RELEASE
我在发行说明中看到类似的问题应该得到解决。然而,我在日志中经常(每 30 分钟到 60 分钟)看到这种情况,服务变得不健康,并在大约 30 秒左右恢复健康。
2018-10-04 12:08:01.182 WARN 1 --- [io-8080-exec-15] o.s.b.a.c.CouchbaseHealthIndicator : Couchbase health check failed
--
| java.util.concurrent.TimeoutException: null
| at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:77)
| at com.couchbase.client.java.bucket.DefaultBucketManager.info(DefaultBucketManager.java:127)
| at org.springframework.boot.actuate.couchbase.CouchbaseHealthIndicator.getBucketInfo(CouchbaseHealthIndicator.java:84)
| at org.springframework.boot.actuate.couchbase.CouchbaseHealthIndicator.doHealthCheck(CouchbaseHealthIndicator.java:75)
| at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:84)
| at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:68)
| at org.springframework.boot.actuate.health.HealthEndpointWebExtension.getHealth(HealthEndpointWebExtension.java:50)
| at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:498)
| at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:223)
| at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76)
| at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:61)
| at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:274)
| at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:330)
| at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:498)
| at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
| at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
| at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
| at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)
| at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
| at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
| at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)
| at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
| at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
| at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
| at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:155)
| at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:123)
| at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
| at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
| at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
| at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
| at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
| at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
| at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
| at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
| at java.lang.Thread.run(Thread.java:748)