Skip to content

Global ordinals crash warmers #15590

@zygfryd

Description

@zygfryd

This has been happening in ES 2.0.x and 2.1.x, the last release where warmers worked for me was 2.0rc1. Affects newly created indexes.

Stacktrace for a simple terms aggregation warmer for a string field (ES 2.1.1):

[2015-12-21 19:28:06,323][WARN ][index.warmer             ] [lxc] [works9][0] warmer [warm_contrib_aggs] failed
java.lang.ClassCastException: org.apache.lucene.index.MultiReader cannot be cast to org.apache.lucene.index.DirectoryReader
    at org.elasticsearch.search.aggregations.support.ValuesSource$Bytes$WithOrdinals$FieldData.globalOrdinalsValues(ValuesSource.java:144)
    at org.elasticsearch.search.aggregations.support.ValuesSource$Bytes$WithOrdinals.globalMaxOrd(ValuesSource.java:117)
    at org.elasticsearch.search.aggregations.bucket.terms.TermsAggregatorFactory.doCreateInternal(TermsAggregatorFactory.java:214)
    at org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory.createInternal(ValuesSourceAggregatorFactory.java:64)
    at org.elasticsearch.search.aggregations.AggregatorFactory.create(AggregatorFactory.java:102)
    at org.elasticsearch.search.aggregations.AggregatorFactories.createTopLevelAggregators(AggregatorFactories.java:87)
    at org.elasticsearch.search.aggregations.AggregationPhase.preProcess(AggregationPhase.java:78)
    at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:104)
    at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:363)
    at org.elasticsearch.search.SearchService.access$600(SearchService.java:119)
    at org.elasticsearch.search.SearchService$SearchWarmer$1.run(SearchService.java:1160)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions