mirror of https://github.com/apache/lucene.git
SOLR-6882: Misspelled collection API actions in ReplicaMutator exception messages
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1647553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d5a8bcf01d
commit
6f74593cb6
|
@ -533,6 +533,9 @@ Other Changes
|
|||
|
||||
* SOLR-6883: CLUSTERPROP API switch case does not call break. (Varun Thacker via shalin)
|
||||
|
||||
* SOLR-6882: Misspelled collection API actions in ReplicaMutator exception messages.
|
||||
(Steve Rowe via shalin)
|
||||
|
||||
================== 4.10.3 ==================
|
||||
|
||||
Bug Fixes
|
||||
|
|
|
@ -402,7 +402,7 @@ public class Overseer implements Closeable {
|
|||
case ADDREPLICAPROP:
|
||||
return new ReplicaMutator(getZkStateReader()).addReplicaProperty(clusterState, message);
|
||||
case DELETEREPLICAPROP:
|
||||
return new ReplicaMutator(getZkStateReader()).removeReplicaProperty(clusterState, message);
|
||||
return new ReplicaMutator(getZkStateReader()).deleteReplicaProperty(clusterState, message);
|
||||
case BALANCESHARDUNIQUE:
|
||||
ExclusiveSliceProperty dProp = new ExclusiveSliceProperty(clusterState, message);
|
||||
if (dProp.balanceProperty()) {
|
||||
|
|
|
@ -94,7 +94,7 @@ public class ReplicaMutator {
|
|||
checkKeyExistence(message, ZkStateReader.PROPERTY_PROP) == false ||
|
||||
checkKeyExistence(message, ZkStateReader.PROPERTY_VALUE_PROP) == false) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
"Overseer SETREPLICAPROPERTY requires " +
|
||||
"Overseer ADDREPLICAPROP requires " +
|
||||
ZkStateReader.COLLECTION_PROP + " and " + ZkStateReader.SHARD_ID_PROP + " and " +
|
||||
ZkStateReader.REPLICA_PROP + " and " + ZkStateReader.PROPERTY_PROP + " and " +
|
||||
ZkStateReader.PROPERTY_VALUE_PROP + " no action taken.");
|
||||
|
@ -115,7 +115,7 @@ public class ReplicaMutator {
|
|||
|
||||
if (SliceMutator.SLICE_UNIQUE_BOOLEAN_PROPERTIES.contains(property)) {
|
||||
if (StringUtils.isNotBlank(shardUnique) && Boolean.parseBoolean(shardUnique) == false) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Overseer SETREPLICAPROPERTY for " +
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Overseer ADDREPLICAPROP for " +
|
||||
property + " cannot have " + OverseerCollectionProcessor.SHARD_UNIQUE + " set to anything other than" +
|
||||
"'true'. No action taken");
|
||||
}
|
||||
|
@ -153,13 +153,13 @@ public class ReplicaMutator {
|
|||
return new ZkWriteCommand(collectionName, newCollection);
|
||||
}
|
||||
|
||||
public ZkWriteCommand removeReplicaProperty(ClusterState clusterState, ZkNodeProps message) {
|
||||
public ZkWriteCommand deleteReplicaProperty(ClusterState clusterState, ZkNodeProps message) {
|
||||
if (checkKeyExistence(message, ZkStateReader.COLLECTION_PROP) == false ||
|
||||
checkKeyExistence(message, ZkStateReader.SHARD_ID_PROP) == false ||
|
||||
checkKeyExistence(message, ZkStateReader.REPLICA_PROP) == false ||
|
||||
checkKeyExistence(message, ZkStateReader.PROPERTY_PROP) == false) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
"Overseer DELETEREPLICAPROPERTY requires " +
|
||||
"Overseer DELETEREPLICAPROP requires " +
|
||||
ZkStateReader.COLLECTION_PROP + " and " + ZkStateReader.SHARD_ID_PROP + " and " +
|
||||
ZkStateReader.REPLICA_PROP + " and " + ZkStateReader.PROPERTY_PROP + " no action taken.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue