HDFS-8324. Add trace info to DFSClient#getErasureCodingZoneInfo(..). Contributed by Vinayakumar B
This commit is contained in:
parent
4392325546
commit
e849be2d31
@ -169,3 +169,6 @@
|
||||
|
||||
HDFS-8242. Erasure Coding: XML based end-to-end test for ECCli commands
|
||||
(Rakesh R via vinayakumarb)
|
||||
|
||||
HDFS-8324. Add trace info to DFSClient#getErasureCodingZoneInfo(..) (vinayakumarb via
|
||||
umamahesh)
|
||||
|
@ -3358,11 +3358,14 @@ TraceScope getSrcDstTraceScope(String description, String src, String dst) {
|
||||
*/
|
||||
public ECZoneInfo getErasureCodingZoneInfo(String src) throws IOException {
|
||||
checkOpen();
|
||||
TraceScope scope = getPathTraceScope("getErasureCodingZoneInfo", src);
|
||||
try {
|
||||
return namenode.getErasureCodingZoneInfo(src);
|
||||
} catch (RemoteException re) {
|
||||
throw re.unwrapRemoteException(FileNotFoundException.class,
|
||||
AccessControlException.class, UnresolvedPathException.class);
|
||||
} finally {
|
||||
scope.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user