HDFS-8324. Add trace info to DFSClient#getErasureCodingZoneInfo(..). Contributed by Vinayakumar B

This commit is contained in:
Uma Maheswara Rao G 2015-05-05 19:25:21 +05:30 committed by Zhe Zhang
parent 4392325546
commit e849be2d31
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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();
}
}
}