org.elasticsearch.ElasticsearchException: java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)

GitHub | mohdnavedshaikh | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 17559#228706027

    GitHub | 8 months ago | mohdnavedshaikh
    org.elasticsearch.ElasticsearchException: java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value really an INT?)
  2. 0

    Invalid shift value in prefixCoded bytes

    GitHub | 10 months ago | s12v
    org.elasticsearch.search.query.QueryPhaseExecutionException: [test][4]: query[ConstantScore(cache(_type:foo))],from[0],size[10],sort[<custom:"id": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@6676d6dc>]: Query Failed [Failed to execute main query]

    Root Cause Analysis

    1. java.lang.NumberFormatException

      Invalid shift value in prefixCoded bytes (is encoded value really an INT?)

      at org.apache.lucene.util.NumericUtils.getPrefixCodedIntShift()
    2. Lucene
      NumericUtils.getPrefixCodedIntShift
      1. org.apache.lucene.util.NumericUtils.getPrefixCodedIntShift(NumericUtils.java:209)
      1 frame
    3. ElasticSearch
      OrdinalsBuilder$2.accept
      1. org.elasticsearch.index.fielddata.ordinals.OrdinalsBuilder$2.accept(OrdinalsBuilder.java:445)
      1 frame
    4. Lucene
      FilteredTermsEnum.next
      1. org.apache.lucene.index.FilteredTermsEnum.next(FilteredTermsEnum.java:244)
      1 frame
    5. ElasticSearch
      SearchServiceTransportAction$23.run
      1. org.elasticsearch.index.fielddata.RamAccountingTermsEnum.next(RamAccountingTermsEnum.java:82)
      2. org.elasticsearch.index.fielddata.ordinals.OrdinalsBuilder$3.next(OrdinalsBuilder.java:472)
      3. org.elasticsearch.index.fielddata.plain.PackedArrayIndexFieldData.loadDirect(PackedArrayIndexFieldData.java:109)
      4. org.elasticsearch.index.fielddata.plain.PackedArrayIndexFieldData.loadDirect(PackedArrayIndexFieldData.java:49)
      5. org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:180)
      6. org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache$1.call(IndicesFieldDataCache.java:167)
      7. org.elasticsearch.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4742)
      8. org.elasticsearch.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
      9. org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)
      10. org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
      11. org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
      12. org.elasticsearch.common.cache.LocalCache.get(LocalCache.java:3937)
      13. org.elasticsearch.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4739)
      14. org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache$IndexFieldCache.load(IndicesFieldDataCache.java:167)
      15. org.elasticsearch.index.fielddata.plain.AbstractIndexFieldData.load(AbstractIndexFieldData.java:74)
      16. org.elasticsearch.search.aggregations.support.ValuesSource$MetaData.load(ValuesSource.java:88)
      17. org.elasticsearch.search.aggregations.support.AggregationContext.numericField(AggregationContext.java:159)
      18. org.elasticsearch.search.aggregations.support.AggregationContext.valuesSource(AggregationContext.java:137)
      19. org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory.create(ValuesSourceAggregatorFactory.java:53)
      20. org.elasticsearch.search.aggregations.AggregatorFactories.createAndRegisterContextAware(AggregatorFactories.java:53)
      21. org.elasticsearch.search.aggregations.AggregatorFactories.createSubAggregators(AggregatorFactories.java:71)
      22. org.elasticsearch.search.aggregations.Aggregator.<init>(Aggregator.java:191)
      23. org.elasticsearch.search.aggregations.bucket.BucketsAggregator.<init>(BucketsAggregator.java:39)
      24. org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator.<init>(SingleBucketAggregator.java:32)
      25. org.elasticsearch.search.aggregations.bucket.filter.FilterAggregator.<init>(FilterAggregator.java:45)
      26. org.elasticsearch.search.aggregations.bucket.filter.FilterAggregator$Factory.create(FilterAggregator.java:86)
      27. org.elasticsearch.search.aggregations.AggregatorFactories.createAndRegisterContextAware(AggregatorFactories.java:53)
      28. org.elasticsearch.search.aggregations.AggregatorFactories.createTopLevelAggregators(AggregatorFactories.java:157)
      29. org.elasticsearch.search.aggregations.AggregationPhase.preProcess(AggregationPhase.java:79)
      30. org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:100)
      31. org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:301)
      32. org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:312)
      33. org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
      34. org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
      35. org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
      35 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames