SOLR-13295: Reproducible failure in TestDistributedGrouping

This commit is contained in:
Erick Erickson 2019-03-05 13:56:40 -08:00
parent de030178b5
commit 558c515bf3
2 changed files with 3 additions and 1 deletions

View File

@ -98,6 +98,8 @@ Bug Fixes
* SOLR-13285: Updates with enum fields and javabin cause ClassCastException (noble) * SOLR-13285: Updates with enum fields and javabin cause ClassCastException (noble)
* SOLR-13295: Reproducible failure in TestDistributedGrouping (Erick Erickson)
Improvements Improvements
---------------------- ----------------------
* SOLR-12999: Index replication could delete segments before downloading segments from master if there is not enough * SOLR-12999: Index replication could delete segments before downloading segments from master if there is not enough

View File

@ -463,7 +463,7 @@ public class ResponseBuilder
if (result.isPartialResults()) { if (result.isPartialResults()) {
rsp.getResponseHeader().asShallowMap() rsp.getResponseHeader().asShallowMap()
.put(SolrQueryResponse.RESPONSE_HEADER_PARTIAL_RESULTS_KEY, Boolean.TRUE); .put(SolrQueryResponse.RESPONSE_HEADER_PARTIAL_RESULTS_KEY, Boolean.TRUE);
if(getResults().docList==null) { if(getResults() != null && getResults().docList==null) {
getResults().docList = new DocSlice(0, 0, new int[] {}, new float[] {}, 0, 0); getResults().docList = new DocSlice(0, 0, new int[] {}, new float[] {}, 0, 0);
} }
} }