[ 
https://issues.apache.org/jira/browse/SOLR-16917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17763156#comment-17763156
 ] 

Jason Gerlowski commented on SOLR-16917:
----------------------------------------

Woohoo!  This was on my list, but I hadn't even realized I'd inadvertently 
fixed it haha.

Thanks for catching this Alex and [~jbcorreia]!

> v2 DELETEREPLICA not working
> ----------------------------
>
>                 Key: SOLR-16917
>                 URL: https://issues.apache.org/jira/browse/SOLR-16917
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: v2 API
>    Affects Versions: 9.3
>            Reporter: Joao Correia
>            Priority: Minor
>             Fix For: 9.4
>
>
> Was checking if we could move on to use the new v2 API for all the API calls 
> that we use currently and it seems like the delete replica command by replica 
> name (deleting 1 replica only) is not working, not sure if this is a known 
> issue as v2 is still a WIP, but logging it here anyway.
>  
> Output from a local test cluster running with docker in solrcloud mode:
>  
> {code:java}
> docker_tests git:(chore/version_9_3_0) ✗ curl -X DELETE 
> http://localhost:8983/api/collections/collection1/shards/shard1/replicas/core_node5
>  -v
> *   Trying 127.0.0.1:8983...
> * Connected to localhost (127.0.0.1) port 8983 (#0)
> > DELETE /api/collections/collection1/shards/shard1/replicas/core_node5 
> > HTTP/1.1
> > Host: localhost:8983
> > User-Agent: curl/8.1.2
> > Accept: */*
> > 
> < HTTP/1.1 404 Not Found
> < Content-Type: application/json
> < Transfer-Encoding: chunked
> < 
> * Connection #0 to host localhost left intact
> {"responseHeader":{"status":404,"QTime":8},"error":{"metadata":{"error-class":"org.apache.solr.common.SolrException","root-error-class":"org.apache.solr.common.SolrException"},"msg":"Cannot
>  find API for the path: 
> /collections/collection1/shards/shard1/replicas/core_node5","code":404}}% 
> {code}
> Same command using old API works fine:
>  
> {code:java}
> docker_tests git:(chore/version_9_3_0) ✗ curl -v 
> "http://localhost:8983/solr/admin/collections?action=DELETEREPLICA&collection=collection1&shard=shard1&replica=core_node5";
> *   Trying 127.0.0.1:8983...
> * Connected to localhost (127.0.0.1) port 8983 (#0)
> > GET 
> > /solr/admin/collections?action=DELETEREPLICA&collection=collection1&shard=shard1&replica=core_node5
> >  HTTP/1.1
> > Host: localhost:8983
> > User-Agent: curl/8.1.2
> > Accept: */*
> > 
> < HTTP/1.1 200 OK
> < Content-Security-Policy: default-src 'none'; base-uri 'none'; connect-src 
> 'self'; form-action 'self'; font-src 'self'; frame-ancestors 'none'; img-src 
> 'self' data:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 
> 'self'; worker-src 'self';
> < X-Content-Type-Options: nosniff
> < X-Frame-Options: SAMEORIGIN
> < X-XSS-Protection: 1; mode=block
> < Content-Type: application/json;charset=utf-8
> < Vary: Accept-Encoding
> < Content-Length: 186
> < 
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":223
>   },
>   "success":{
>     "172.24.0.6:8983_solr":{
>       "responseHeader":{
>         "status":0,
>         "QTime":65
>       }
>     }
>   }
> * Connection #0 to host localhost left intact
> }%                                            {code}
> Let me know if you need any more info.
>  
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to