From e565b05c80c731898a54f8c1d358c12090ca5bbf Mon Sep 17 00:00:00 2001 From: litao Date: Sun, 14 Mar 2021 06:37:31 +0800 Subject: [PATCH] HDFS-15884. RBF: Remove unused method getCreateLocation in RouterRpcServer (#2754). Contributed by tomscut. --- .../server/federation/router/RouterRpcServer.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java index 1d0800e4bd..6bf159f788 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java @@ -776,20 +776,6 @@ public HdfsFileStatus create(String src, FsPermission masked, replication, blockSize, supportedVersions, ecPolicyName, storagePolicy); } - - /** - * Get the location to create a file. It checks if the file already existed - * in one of the locations. - * - * @param src Path of the file to check. - * @return The remote location for this file. - * @throws IOException If the file has no creation location. - */ - RemoteLocation getCreateLocation(final String src) throws IOException { - final List locations = getLocationsForPath(src, true); - return getCreateLocation(src, locations); - } - /** * Get the location to create a file. It checks if the file already existed * in one of the locations.