Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc
title: Remove the deprecated `fromNode` request parameter of the MOVEREPLICA Collections API command; use `sourceNode` instead.
type: removed
authors:
- name: Serhiy Bzhezytskyy
links:
- name: SOLR-18383
url: https://issues.apache.org/jira/browse/SOLR-18383
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,11 @@ private void moveReplica(
"Collection: " + collection + " replica: " + replicaName + " does not exist");
}
} else {
String sourceNode =
message.getStr(CollectionParams.SOURCE_NODE, message.getStr(CollectionParams.FROM_NODE));
String sourceNode = message.getStr(CollectionParams.SOURCE_NODE);
if (sourceNode == null) {
throw new SolrException(
SolrException.ErrorCode.BAD_REQUEST,
"'"
+ CollectionParams.SOURCE_NODE
+ " or '"
+ CollectionParams.FROM_NODE
+ "' is a required param");
"'" + CollectionParams.SOURCE_NODE + "' is a required param");
}
String shardId = message.getStr(SHARD_ID_PROP);
if (shardId == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,6 @@ public Map<String, Object> execute(
return copy(
req.getParams(),
map,
CollectionParams.FROM_NODE,
CollectionParams.SOURCE_NODE,
TARGET_NODE,
WAIT_FOR_FINAL_STATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ public interface CollectionParams {

String NAME = "name";

/**
* @deprecated use {@link #SOURCE_NODE} instead
*/
@Deprecated String FROM_NODE = "fromNode";

String SOURCE_NODE = "sourceNode";
String TARGET_NODE = "targetNode";
String SOURCE_NODES = "sourceNodes";
Expand Down
Loading