DFSClient.setQuotaByStorageType call on leaderNN
@@ -2680,7 +2680,7 @@ void setQuotaByStorageType(String src, StorageType type, long quota)
+ type.toString());
}
try (TraceScope ignored = newPathTraceScope("setQuotaByStorageType", src)) {
- namenode.setQuota(src, HdfsConstants.QUOTA_DONT_SET, quota, type);
+ leaderNN.setQuota(src, HdfsConstants.QUOTA_DONT_SET, quota, type);
} catch (RemoteException re) {
throw re.unwrapRemoteException(AccessControlException.class,
FileNotFoundException.class,
