1
0
mirror of https://github.com/apache/lucene.git synced 2025-03-05 15:59:25 +00:00

SOLR-8790: Add the node name to core responses in calls from the Overseer

This commit is contained in:
anshum 2016-03-10 12:22:23 -08:00 committed by Anshum Gupta
parent 77d233bc01
commit 8fe11a06ce
3 changed files with 5 additions and 1 deletions
solr
CHANGES.txt
core/src
java/org/apache/solr/cloud
test/org/apache/solr/cloud

@ -285,6 +285,9 @@ Bug Fixes
* SOLR-8135: If a core reload is fired after a core close, it is not a non-recoverable error (noble)
* SOLR-8790: Collections API responses contain node name in the core-level responses that are
returned. (Anshum Gupta)
Optimizations
----------------------
* SOLR-7876: Speed up queries and operations that use many terms when timeAllowed has not been

@ -1743,6 +1743,7 @@ public class OverseerCollectionMessageHandler implements OverseerMessageHandler
String replica = zkStateReader.getBaseUrlForNodeName(nodeName);
sreq.shards = new String[]{replica};
sreq.actualShards = sreq.shards;
sreq.nodeName = nodeName;
sreq.params = params;
shardHandler.submit(sreq, replica, sreq.params);

@ -54,7 +54,6 @@ import static org.apache.solr.cloud.ReplicaPropertiesBase.verifyUniqueAcrossColl
public class CollectionsAPISolrJTest extends AbstractFullDistribZkTestBase {
@Test
@Ignore
public void test() throws Exception {
testCreateAndDeleteCollection();
testCreateAndDeleteShard();
@ -80,6 +79,7 @@ public class CollectionsAPISolrJTest extends AbstractFullDistribZkTestBase {
.setConfigName("conf1")
.setRouterField("myOwnField")
.setStateFormat(1);
CollectionAdminResponse response = createCollectionRequest.process(cloudClient);
assertEquals(0, response.getStatus());