You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Bence Szabó (Jira)" <ji...@apache.org> on 2022/11/26 12:59:00 UTC
[jira] [Comment Edited] (SOLR-11028) Create a v2 API equivalent for REPLACENODE API
[ https://issues.apache.org/jira/browse/SOLR-11028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17639006#comment-17639006 ]
Bence Szabó edited comment on SOLR-11028 at 11/26/22 12:58 PM:
---------------------------------------------------------------
I have found a minor mistake in the documentation part for this ticket: it says as an example this command:
{code:java}
curl -X POST "http://localhost:8983/api/cluster/nodes/localhost:7574_solr/commands/replace/" -H 'Content-Type: application/json' -d '
{
"targetNodeName": "localhost:8983_solr",
"waitForFinalState": "false",
"async": "async"
}
'{code}
But according to the code the API endpoint should be
{{cluster/nodes/\{sourceNodeName}/replace/ }}
without the {{command}} part. I have also tested and I get the following error when running the same command which is mentioned as example:
{code:java}
{"responseHeader":{"status":404,"QTime":0},"error":{"metadata":{"error-class":"org.apache.solr.common.SolrException","root-error-class":"org.apache.solr.common.SolrException"},"msg":"Cannot find API for the path: /cluster/nodes/localhost:7574_solr/commands/replace/","code":404}} {code}
Without the {{commands}} part it works.
was (Author: bszabo97):
I have found a minor mistake in the documentation part for this ticket: it says as an example this command:
{code:java}
curl -X POST "http://localhost:8983/api/cluster/nodes/localhost:7574_solr/commands/replace/" -H 'Content-Type: application/json' -d '
{
"targetNodeName": "localhost:8983_solr",
"waitForFinalState": "false",
"async": "async"
}
'{code}
But according to the code the API endpoint should be \{{cluster/nodes/{sourceNodeName}/replace/}} without the {{command}} part. I have also tested and I get the following error when running the same command which is mentioned as example:
{code:java}
{"responseHeader":{"status":404,"QTime":0},"error":{"metadata":{"error-class":"org.apache.solr.common.SolrException","root-error-class":"org.apache.solr.common.SolrException"},"msg":"Cannot find API for the path: /cluster/nodes/localhost:7574_solr/commands/replace/","code":404}} {code}
Without the {{commands}} part it works.
> Create a v2 API equivalent for REPLACENODE API
> ----------------------------------------------
>
> Key: SOLR-11028
> URL: https://issues.apache.org/jira/browse/SOLR-11028
> Project: Solr
> Issue Type: Sub-task
> Components: SolrCloud, v2 API
> Reporter: Shalin Shekhar Mangar
> Priority: Major
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> The REPLACENODE API is only implemented as part of the v1 collections API. There should be an equivalent call in the v2 paradigm.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org