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

David Smiley commented on SOLR-16415:
-------------------------------------

The problem is that "asyncId" cannot have forward slashes in it "/" yet there 
is no enforcement of this.  The Autoscaling framework (doesn't exist in 9.0 
onwards) [created asyncIds with forward slashes in 
it|https://github.com/apache/lucene-solr/blob/4352894a1b140f09c7eeb596d05c388595ce668c/solr/core/src/java/org/apache/solr/cloud/autoscaling/ExecutePlanAction.java#L104C24-L104C24].
  Credit to [~pmcarthur] for identifying the cause.

Solr ought to enforce this restriction.  And for safety/thoroughness, it should 
try to clean it up (e.g. upgraded from 8x cluster).  I believe in an extreme 
situation, this could deadlock the Overseer as it can no longer put anything in 
ZK based queues that reach their capacity.  For example maybe asyncId is used a 
lot in a fire-and-forget manner; are not deleted because it may be impractical 
for some use-cases to delete their status.  I'll propose a PR.

> DELETESTATUS API throws Exception
> ---------------------------------
>
>                 Key: SOLR-16415
>                 URL: https://issues.apache.org/jira/browse/SOLR-16415
>             Project: Solr
>          Issue Type: Bug
>          Components: v2 API
>            Reporter: Rajeswari Natarajan
>            Priority: Major
>
> When calling  the DELETESTATUS API to clear all the stored statues as below
> [http://localhost:8983/solr/admin/collections?action=DELETESTATUS&flush=true]
> throws exception
> KeeperErrorCode = Directory not empty for 
> /overseer/collection-map-completed/mn-.auto_add_replicas
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:681)
>  ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
>  ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
>  ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.impl.LBSolrClient.doRequest(LBSolrClient.java:369)
>  ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.impl.LBSolrClient.request(LBSolrClient.java:297) 
> ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.impl.BaseCloudSolrClient.sendRequest(BaseCloudSolrClient.java:1171)
>  ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.impl.BaseCloudSolrClient.requestWithRetryOnStaleState(BaseCloudSolrClient.java:934)
>  ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.impl.BaseCloudSolrClient.request(BaseCloudSolrClient.java:866)
>  ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214) 
> ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
>         at 
> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:231) 
> ~[solr-solrj-8.11.1.jar!/:8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - 
> janhoy - 2021-12-14 13:50:57]
> After deleting the znode manually 
> /overseer/collection-map-completed/mn-.auto_add_replicas , the api worked. 



--
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