Skip to content

Commit

Permalink
[bugfix](fe) should use equals not == to get failed to select replica…
Browse files Browse the repository at this point in the history
… message
  • Loading branch information
yiguolei committed Dec 18, 2024
1 parent ca24cd1 commit a4700fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public String getDetailsForCreateReplica(ReplicaAllocation replicaAlloc) {
StringBuilder sb = new StringBuilder(" Backends details: ");
for (Tag tag : replicaAlloc.getAllocMap().keySet()) {
sb.append("backends with tag ").append(tag).append(" is ");
sb.append(idToBackendRef.values().stream().filter(be -> be.getLocationTag() == tag)
sb.append(idToBackendRef.values().stream().filter(be -> be.getLocationTag().equals(tag))
.map(Backend::getDetailsForCreateReplica)
.collect(Collectors.toList()));
sb.append(", ");
Expand Down

0 comments on commit a4700fc

Please sign in to comment.