Skip to content
Merged
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
Expand Up @@ -89,6 +89,10 @@ private List<TRegionReplicaSet> getReachableCandidates(List<TRegionReplicaSet> a
if (!isPartitioned.get() || all == null || all.isEmpty()) {
return all;
}
if (all.stream().anyMatch(set -> set.getDataNodeLocationsSize() == 0)) {
// some TRegionReplicaSet is unreachable since all DataNodes are down
return Collections.emptyList();
}
final Map<Integer, Set<Integer>> topologyMapCurrent =
Collections.unmodifiableMap(this.topologyMap.get());

Expand Down
Loading