You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Andras Salamon (Jira)" <ji...@apache.org> on 2022/08/23 11:30:00 UTC
[jira] [Created] (SOLR-16352) DELETESHARD does not allow deleting a recovery_failed shard.
Andras Salamon created SOLR-16352:
-------------------------------------
Summary: DELETESHARD does not allow deleting a recovery_failed shard.
Key: SOLR-16352
URL: https://issues.apache.org/jira/browse/SOLR-16352
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Andras Salamon
We wanted to delete a shard with recovery_failed status, but got the following error:
{noformat}
The slice: shard2_0 is currently recovery_failed. Only non-active (or custom-hashed) slices can be deleted. {noformat}
This is the code which checks this ([https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteShardCmd.java#L85-L89):]
{noformat}
if (!(slice.getRange() == null
|| state == Slice.State.INACTIVE
|| state == Slice.State.RECOVERY
|| state == Slice.State.CONSTRUCTION)
|| state == Slice.State.RECOVERY_FAILED) {
throw new SolrException(...
{noformat}
maybe this is only a typo and we wanted to allow deletion of RECOVERY_FAILED shards? If this is only a bug, we need to move the parentheses and allow deletion of RECOVERY_FALIED slice.
If this is intentional, then a new parameter (force?) would be great to allow the override this check if someone is brave enough.
--
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