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