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:
parent
2cc0382cf0
commit
c563d68872
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue