Failure during the fetch phase of scan should invoke the failed fetch phase handler.

This commit fixes an issue where during a failure in the fetch phase of a scan the wrong failure handler was invoked.

Closes #12086
This commit is contained in:
Jason Tedor 2015-07-07 11:33:53 -04:00
parent 2cc0382cf0
commit c563d68872
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ public class SearchService extends AbstractLifecycleComponent<SearchService> {
contextProcessedSuccessfully(context);
}
} catch (Throwable e) {
shardSearchStats.onFailedQueryPhase(context);
shardSearchStats.onFailedFetchPhase(context);
throw ExceptionsHelper.convertToRuntime(e);
}
shardSearchStats.onFetchPhase(context, System.nanoTime() - queryFinishTime);