Request hang with alias: Failed to execute fetch phase


(Laurent Richer) #1

Hello,

I'm using the following request which works fine when using index-name in the request :

curl -XGET "http://localhost:9200/ea-v1-2017-06/_search" -H 'Content-Type: application/json' -d'
{
  "version": true,
  "size": 500,
  "sort": [
    {
      "norm_first_techno": {
        "order": "asc",
        "unmapped_type": "boolean"
      }
    }
  ],
  "aggs": {
    "2": {
      "date_histogram": {
        "field": "@timestamp",
        "interval": "30m",
        "time_zone": "Europe/Berlin",
        "min_doc_count": 1
      }
    }
  },
  "query": {
    "bool": {
      "must": [
        {
          "match_all": {}
        },
        {
          "range": {
            "@timestamp": {
              "gte": 1496312222586,
              "lte": 1496398622586,
              "format": "epoch_millis"
            }
          }
        }
      ]
    }
  }
}'

I have created the alias 'ea' which match ea-*.

And now when i'm using the same request with the alias:

curl -XGET "http://localhost:9200/ea/_search ....

Then the curl hang and i've got the following errors in elasticsearch logs:

Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: [barak-ingest01][10.171.6.232:9300][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.transport.ResponseHandlerFailureTransportException: java.lang.UnsupportedOperationException
Caused by: java.lang.UnsupportedOperationException
at org.elasticsearch.search.DocValueFormat$3.format(DocValueFormat.java:249) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.search.SearchSortValues.(SearchSortValues.java:51) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.search.SearchHit.sortValues(SearchHit.java:417) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.SearchPhaseController.getHits(SearchPhaseController.java:390) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.SearchPhaseController.merge(SearchPhaseController.java:314) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.FetchSearchPhase.moveToNextPhase(FetchSearchPhase.java:205) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.FetchSearchPhase.lambda$innerRun$2(FetchSearchPhase.java:105) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.CountedCollector.countDown(CountedCollector.java:53) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.CountedCollector.onResult(CountedCollector.java:64) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:164) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:161) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:44) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:29) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.ActionListenerResponseHandler.handleResponse(ActionListenerResponseHandler.java:46) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1043) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1117) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1107) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1096) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.DelegatingTransportChannel.sendResponse(DelegatingTransportChannel.java:60) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.RequestHandlerRegistry$TransportChannelWrapper.sendResponse(RequestHandlerRegistry.java:111) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.SearchTransportService$12.messageReceived(SearchTransportService.java:403) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.action.search.SearchTransportService$12.messageReceived(SearchTransportService.java:399) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.transport.TransportService$7.doRun(TransportService.java:627) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:638) [elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-5.4.1.jar:5.4.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_131]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]

Any ideas how to fix it ?

Thanks
Laurent


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.