Hi,
I use ElasticSearch v5.1.1. When I try to run a percentile aggregation query using Kibana, ES throws an exception and restarts. I am running Kibana version 5.1.2
java.lang.NoSuchMethodError: org.elasticsearch.search.aggregations.metrics.percentiles.tdigest.TDigestState.centroidCount()I
at org.elasticsearch.search.aggregations.metrics.percentiles.tdigest.TDigestState.write(TDigestState.java:47) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.aggregations.metrics.percentiles.tdigest.AbstractInternalTDigestPercentiles.doWriteTo(AbstractInternalTDigestPercentiles.java:65) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.aggregations.InternalAggregation.writeTo(InternalAggregation.java:117) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.io.stream.StreamOutput.writeNamedWriteable(StreamOutput.java:831) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.io.stream.StreamOutput.writeNamedWriteableList(StreamOutput.java:909) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.aggregations.InternalAggregations.writeTo(InternalAggregations.java:208) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram$Bucket.writeTo(InternalDateHistogram.java:85) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.io.stream.StreamOutput.writeList(StreamOutput.java:889) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.doWriteTo(InternalDateHistogram.java:227) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.aggregations.InternalAggregation.writeTo(InternalAggregation.java:117) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.io.stream.StreamOutput.writeNamedWriteable(StreamOutput.java:831) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.io.stream.StreamOutput.writeNamedWriteableList(StreamOutput.java:909) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.aggregations.InternalAggregations.writeTo(InternalAggregations.java:208) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.query.QuerySearchResult.writeToNoId(QuerySearchResult.java:256) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.indices.IndicesService.lambda$loadIntoContext$18(IndicesService.java:1161) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.indices.IndicesService.lambda$cacheShardLevelResult$20(IndicesService.java:1229) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:150) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:133) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.cache.Cache.computeIfAbsent(Cache.java:398) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.indices.IndicesRequestCache.getOrCompute(IndicesRequestCache.java:116) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.indices.IndicesService.cacheShardLevelResult(IndicesService.java:1235) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.indices.IndicesService.loadIntoContext(IndicesService.java:1158) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:257) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-5.1.1.jar:5.1.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_112]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
Most of the other queries seem to be working fine. Percentile aggregations causes my entire cluster to restart. Any help on how to debug/solve this would be greatly appreciated
Thanks,
Vignesh