Selaa lähdekoodia

HDFS-17714. MockResolver#removeLocation should also remove src path. (#7313). Contributed by hfutatzhanghb.

Reviewed-by: Jian Zhang <keepromise@apache.org>
hfutatzhanghb 2 kuukautta sitten
vanhempi
commit
26b9affe04

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

@@ -101,6 +101,7 @@ public class MockResolver
     final RemoteLocation remoteLocation =
         new RemoteLocation(nsId, location, mount);
     if (locationsList != null) {
+      locations.remove(mount);
       return locationsList.remove(remoteLocation);
     }
     return false;