This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new d686a65 HDFS-15603. RBF: Fix getLocationsForPath twice in create
operation. Contributed by wangzhaohui.
d686a65 is described below
commit d686a655bc36ab68f4dbf66e1c2d0690dd337bd6
Author: Ayush Saxena <[email protected]>
AuthorDate: Tue Sep 29 00:03:11 2020 +0530
HDFS-15603. RBF: Fix getLocationsForPath twice in create operation.
Contributed by wangzhaohui.
---
.../hadoop/hdfs/server/federation/router/RouterClientProtocol.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
index e52c0c9..2c7e90b 100644
---
a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
+++
b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
@@ -288,7 +288,7 @@ public class RouterClientProtocol implements ClientProtocol
{
rpcServer.getLocationsForPath(src, true);
RemoteLocation createLocation = null;
try {
- createLocation = rpcServer.getCreateLocation(src);
+ createLocation = rpcServer.getCreateLocation(src, locations);
return rpcClient.invokeSingle(createLocation, method,
HdfsFileStatus.class);
} catch (IOException ioe) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]