Skip to content

Commit bc70d0f

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 a7a3613 commit bc70d0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ protected String chooseFirstNamespace(String path, PathLocation loc) {
123123
}
124124
Collections.sort(subclusterList, comparator);
125125

126-
return subclusterList.size() > 0 ? subclusterList.get(0).getNameserviceId()
127-
: null;
126+
return subclusterList.size() > 0 ? subclusterList.get(0).getNameserviceId() : null;
128127
}
129128

130129
/**

0 commit comments

Comments
 (0)