mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 08:19:23 +00:00
SOLR-8790: Add the node name to core responses in calls from the Overseer
This commit is contained in:
parent
77d233bc01
commit
8fe11a06ce
@ -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-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
|
Optimizations
|
||||||
----------------------
|
----------------------
|
||||||
* SOLR-7876: Speed up queries and operations that use many terms when timeAllowed has not been
|
* 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);
|
String replica = zkStateReader.getBaseUrlForNodeName(nodeName);
|
||||||
sreq.shards = new String[]{replica};
|
sreq.shards = new String[]{replica};
|
||||||
sreq.actualShards = sreq.shards;
|
sreq.actualShards = sreq.shards;
|
||||||
|
sreq.nodeName = nodeName;
|
||||||
sreq.params = params;
|
sreq.params = params;
|
||||||
|
|
||||||
shardHandler.submit(sreq, replica, sreq.params);
|
shardHandler.submit(sreq, replica, sreq.params);
|
||||||
|
@ -54,7 +54,6 @@ import static org.apache.solr.cloud.ReplicaPropertiesBase.verifyUniqueAcrossColl
|
|||||||
public class CollectionsAPISolrJTest extends AbstractFullDistribZkTestBase {
|
public class CollectionsAPISolrJTest extends AbstractFullDistribZkTestBase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
|
||||||
public void test() throws Exception {
|
public void test() throws Exception {
|
||||||
testCreateAndDeleteCollection();
|
testCreateAndDeleteCollection();
|
||||||
testCreateAndDeleteShard();
|
testCreateAndDeleteShard();
|
||||||
@ -80,6 +79,7 @@ public class CollectionsAPISolrJTest extends AbstractFullDistribZkTestBase {
|
|||||||
.setConfigName("conf1")
|
.setConfigName("conf1")
|
||||||
.setRouterField("myOwnField")
|
.setRouterField("myOwnField")
|
||||||
.setStateFormat(1);
|
.setStateFormat(1);
|
||||||
|
|
||||||
CollectionAdminResponse response = createCollectionRequest.process(cloudClient);
|
CollectionAdminResponse response = createCollectionRequest.process(cloudClient);
|
||||||
|
|
||||||
assertEquals(0, response.getStatus());
|
assertEquals(0, response.getStatus());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user