You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by is...@apache.org on 2019/12/18 19:04:00 UTC

[lucene-solr] branch jira/solr14089 updated: Fixing DeleteReplicaTest

This is an automated email from the ASF dual-hosted git repository.

ishan pushed a commit to branch jira/solr14089
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/jira/solr14089 by this push:
     new 1b3f091  Fixing DeleteReplicaTest
1b3f091 is described below

commit 1b3f091ce9d388a1450160df7f899b85787f4b1c
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Thu Dec 19 00:33:28 2019 +0530

    Fixing DeleteReplicaTest
---
 .../java/org/apache/solr/cloud/api/collections/DeleteReplicaCmd.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteReplicaCmd.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteReplicaCmd.java
index 8da30bb..592c124 100644
--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteReplicaCmd.java
+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/DeleteReplicaCmd.java
@@ -227,7 +227,7 @@ public class DeleteReplicaCmd implements Cmd {
     if (Boolean.parseBoolean(message.getStr(OverseerCollectionMessageHandler.ONLY_IF_DOWN)) && ssp.getState(replica) != Replica.State.DOWN) {
       throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
               "Attempted to remove replica : " + collectionName + "/"  + shard + "/" + replicaName +
-              " with onlyIfDown='true', but state is '" + replica.getStr(ZkStateReader.STATE_PROP) + "'");
+              " with onlyIfDown='true', but state is '" + ssp.getState(replica) + "'");
     }
 
     ShardHandler shardHandler = ocmh.shardHandlerFactory.getShardHandler(ocmh.overseer.getCoreContainer().getUpdateShardHandler().getDefaultHttpClient());