Skip to content

Commit

Permalink
Remove broken and unused ZkStateReader.getReplicaProps()
Browse files Browse the repository at this point in the history
  • Loading branch information
psalagnac committed Jan 23, 2025
1 parent d2c76c8 commit 5f256ec
Showing 1 changed file with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1002,30 +1002,12 @@ public static String getShardLeadersElectPath(String collection, String shardId)

public List<ZkCoreNodeProps> getReplicaProps(
String collection, String shardId, String thisCoreNodeName) {
return getReplicaProps(collection, shardId, thisCoreNodeName, null);
}

public List<ZkCoreNodeProps> getReplicaProps(
String collection,
String shardId,
String thisCoreNodeName,
Replica.State mustMatchStateFilter) {
return getReplicaProps(collection, shardId, thisCoreNodeName, mustMatchStateFilter, null);
}

public List<ZkCoreNodeProps> getReplicaProps(
String collection,
String shardId,
String thisCoreNodeName,
Replica.State mustMatchStateFilter,
Replica.State mustNotMatchStateFilter) {
// TODO: We don't need all these getReplicaProps method overloading. Also, it's odd that the
// default is to return replicas of type TLOG and NRT only
// TODO: It's odd that the default is to return replicas of type TLOG and NRT only
return getReplicaProps(
collection,
shardId,
thisCoreNodeName,
mustMatchStateFilter,
null,
null,
EnumSet.of(Replica.Type.TLOG, Replica.Type.NRT));
}
Expand Down

0 comments on commit 5f256ec

Please sign in to comment.