弹性搜索运行状况检查失败-Spring Boot / Cloud

时间:2018-12-07 13:38:18

标签: java elasticsearch spring-cloud spring-boot-admin

我有一个Java应用程序正在连接到弹性搜索。 它还连接到eureka发现并进行注册。

我不断收到有关它正在下降和上升的通知。

我检查了日志,并看到以下错误消息:

2018-12-07 14:09:46.040  WARN [ab-elastic-search,,,] 23288 --- [nfoReplicator-0] o.s.b.a.e.ElasticsearchHealthIndicator   : Elasticsearch health check failed

org.elasticsearch.ElasticsearchTimeoutException: java.util.concurrent.TimeoutException: Timeout waiting for task.
    at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:71) ~[elasticsearch-5.4.0.jar!/:5.4.0]
    at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:58) ~[elasticsearch-5.4.0.jar!/:5.4.0]
    at org.springframework.boot.actuate.elasticsearch.ElasticsearchHealthIndicator.doHealthCheck(ElasticsearchHealthIndicator.java:80) ~[spring-boot-actuator-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:84) ~[spring-boot-actuator-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:68) [spring-boot-actuator-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:103) [spring-cloud-netflix-eureka-client-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
    at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:99) [spring-cloud-netflix-eureka-client-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
    at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1382) [eureka-client-1.9.2.jar!/:1.9.2]
    at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117) [eureka-client-1.9.2.jar!/:1.9.2]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_161]
    at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_161]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.8.0_161]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_161]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_161]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_161]
    at java.lang.Thread.run(Unknown Source) [na:1.8.0_161]
Caused by: java.util.concurrent.TimeoutException: Timeout waiting for task.
    at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:232) ~[elasticsearch-5.4.0.jar!/:5.4.0]
    at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:67) ~[elasticsearch-5.4.0.jar!/:5.4.0]
    at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:69) ~[elasticsearch-5.4.0.jar!/:5.4.0]

有什么想法吗?

弹性搜索后端是否花费太多时间来响应?

还是其他呢?

但是简单的查询可以正常工作。

输入以下命令后,来自Eureka和spring-boot-admin的通知将停止: 服务中的management.health.elasticsearch.enabled = false。

0 个答案:

没有答案