HDFS-7940. Add tracing to DFSClient#setQuotaByStorageType (Rakesh R via Colin P. McCabe)
(cherry picked from commit d8846707c58c5c3ec542128df13a82ddc05fb347) (cherry picked from commit 455d4aa8a12920fccad1bcde715f6fb6d9a63561)
This commit is contained in:
parent
ef9d46dcb6
commit
d2dad74421
@ -434,6 +434,9 @@ Release 2.7.0 - UNRELEASED
|
||||
HDFS-2605. Remove redundant "Release 0.21.1" section from CHANGES.txt.
|
||||
(Allen Wittenauer via shv)
|
||||
|
||||
HDFS-7940. Add tracing to DFSClient#setQuotaByStorageType (Rakesh R via
|
||||
Colin P. McCabe)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-7454. Reduce memory footprint for AclEntries in NameNode.
|
||||
|
@ -3088,6 +3088,7 @@ void setQuotaByStorageType(String src, StorageType type, long quota)
|
||||
throw new IllegalArgumentException("Don't support Quota for storage type : "
|
||||
+ type.toString());
|
||||
}
|
||||
TraceScope scope = getPathTraceScope("setQuotaByStorageType", src);
|
||||
try {
|
||||
namenode.setQuota(src, HdfsConstants.QUOTA_DONT_SET, quota, type);
|
||||
} catch (RemoteException re) {
|
||||
@ -3096,6 +3097,8 @@ void setQuotaByStorageType(String src, StorageType type, long quota)
|
||||
QuotaByStorageTypeExceededException.class,
|
||||
UnresolvedPathException.class,
|
||||
SnapshotAccessControlException.class);
|
||||
} finally {
|
||||
scope.close();
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user