HDFS-15603. RBF: Fix getLocationsForPath twice in create operation. Contributed by wangzhaohui.

This commit is contained in:
Ayush Saxena 2020-09-29 00:03:11 +05:30
parent fc8a6dd8a9
commit d686a655bc
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ public class RouterClientProtocol implements ClientProtocol {
rpcServer.getLocationsForPath(src, true); rpcServer.getLocationsForPath(src, true);
RemoteLocation createLocation = null; RemoteLocation createLocation = null;
try { try {
createLocation = rpcServer.getCreateLocation(src); createLocation = rpcServer.getCreateLocation(src, locations);
return rpcClient.invokeSingle(createLocation, method, return rpcClient.invokeSingle(createLocation, method,
HdfsFileStatus.class); HdfsFileStatus.class);
} catch (IOException ioe) { } catch (IOException ioe) {