Skip to content

Commit 6eb709b

Browse files
committed
HDFS-17602. RBF mount point with SPACE order can not find the most available namespace, it will choose an irrelevant namespace
1 parent 918da8d commit 6eb709b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/order/AvailableSpaceResolver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ protected String chooseFirstNamespace(String path, PathLocation loc) {
121121
getSubclusterMapping();
122122
List<SubclusterAvailableSpace> subclusterList = new LinkedList<>(
123123
subclusterInfo.values());
124+
124125
if (loc != null && loc.getDestinations() != null) {
125126
Set<String> locSet = new HashSet<String>();
126127
for (RemoteLocation dest : loc.getDestinations()) {

0 commit comments

Comments
 (0)