HDFS-15603. RBF: Fix getLocationsForPath twice in create operation. Contributed by wangzhaohui.
This commit is contained in:
parent
fc8a6dd8a9
commit
d686a655bc
@ -288,7 +288,7 @@ public HdfsFileStatus create(String src, FsPermission masked,
|
|||||||
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user