# Request hang with alias: Failed to execute fetch phase

**URL:** <https://discuss.elastic.co/t/request-hang-with-alias-failed-to-execute-fetch-phase/88070>\
**Category:** Elasticsearch\
**Created:** [June 2, 2017, 11:04am UTC](https://discuss.elastic.co/t/request-hang-with-alias-failed-to-execute-fetch-phase/88070 "2017-06-02T11:04:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurent-richer](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@laurent-richer](https://discuss.elastic.co/u/laurent-richer)\
**Post date:** [June 2, 2017, 11:04am UTC](https://discuss.elastic.co/t/request-hang-with-alias-failed-to-execute-fetch-phase/88070/1 "2017-06-02T11:04:51Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 30, 2017, 11:04am UTC](https://discuss.elastic.co/t/request-hang-with-alias-failed-to-execute-fetch-phase/88070/2 "2017-06-30T11:04:53Z")

</div>

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