Skip to content

Commit 41a7cd5

Browse files
authored
Remove broken and unused ZkStateReader.getReplicaProps() (#3059)
1 parent af7e9a9 commit 41a7cd5

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,30 +1002,12 @@ public static String getShardLeadersElectPath(String collection, String shardId)
10021002

10031003
public List<ZkCoreNodeProps> getReplicaProps(
10041004
String collection, String shardId, String thisCoreNodeName) {
1005-
return getReplicaProps(collection, shardId, thisCoreNodeName, null);
1006-
}
1007-
1008-
public List<ZkCoreNodeProps> getReplicaProps(
1009-
String collection,
1010-
String shardId,
1011-
String thisCoreNodeName,
1012-
Replica.State mustMatchStateFilter) {
1013-
return getReplicaProps(collection, shardId, thisCoreNodeName, mustMatchStateFilter, null);
1014-
}
1015-
1016-
public List<ZkCoreNodeProps> getReplicaProps(
1017-
String collection,
1018-
String shardId,
1019-
String thisCoreNodeName,
1020-
Replica.State mustMatchStateFilter,
1021-
Replica.State mustNotMatchStateFilter) {
1022-
// TODO: We don't need all these getReplicaProps method overloading. Also, it's odd that the
1023-
// default is to return replicas of type TLOG and NRT only
1005+
// TODO: It's odd that the default is to return replicas of type TLOG and NRT only
10241006
return getReplicaProps(
10251007
collection,
10261008
shardId,
10271009
thisCoreNodeName,
1028-
mustMatchStateFilter,
1010+
null,
10291011
null,
10301012
EnumSet.of(Replica.Type.TLOG, Replica.Type.NRT));
10311013
}

0 commit comments

Comments
 (0)