Repository: hadoop Updated Branches: refs/heads/branch-2 0b6d5a073 -> 8bbd56080 refs/heads/branch-2.9 7432debf4 -> 17596fba2
HDFS-13250. Addendum to fix branch-2 compilation. RBF: Router to manage requests across multiple subclusters. Contributed by Inigo Goiri. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8bbd5608 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8bbd5608 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8bbd5608 Branch: refs/heads/branch-2 Commit: 8bbd560805e658767b82e2f557717e4935c31f9d Parents: 0b6d5a0 Author: Inigo Goiri <inigo...@apache.org> Authored: Wed Mar 21 11:38:17 2018 -0700 Committer: Inigo Goiri <inigo...@apache.org> Committed: Wed Mar 21 11:38:17 2018 -0700 ---------------------------------------------------------------------- .../hadoop/hdfs/server/federation/router/RouterRpcServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/8bbd5608/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java ---------------------------------------------------------------------- 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 0504ca2..65f8b74 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 @@ -1163,7 +1163,7 @@ public class RouterRpcServer extends AbstractService implements ClientProtocol { for (RemoteLocation loc : locations) { HdfsFileStatus fileStatus = results.get(loc); if (fileStatus != null) { - if (!fileStatus.isDirectory()) { + if (fileStatus.isDir()) { return fileStatus; } else if (dirStatus == null) { dirStatus = fileStatus; --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org