Skip to content

Commit 26b9aff

Browse files
HDFS-17714. MockResolver#removeLocation should also remove src path. (#7313). Contributed by hfutatzhanghb.
Reviewed-by: Jian Zhang <keepromise@apache.org>
1 parent df5e205 commit 26b9aff

File tree

1 file changed

+1
-0
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation

1 file changed

+1
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/MockResolver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public boolean removeLocation(String mount, String nsId, String location) {
101101
final RemoteLocation remoteLocation =
102102
new RemoteLocation(nsId, location, mount);
103103
if (locationsList != null) {
104+
locations.remove(mount);
104105
return locationsList.remove(remoteLocation);
105106
}
106107
return false;

0 commit comments

Comments
 (0)