瀏覽代碼

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
Jason Tedor 10 年之前
父節點
當前提交
c563d68872
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/src/main/java/org/elasticsearch/search/SearchService.java

+ 1 - 1
core/src/main/java/org/elasticsearch/search/SearchService.java

@@ -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);