xianjingfeng commented on code in PR #359:
URL: https://github.com/apache/incubator-uniffle/pull/359#discussion_r1032727016
##########
coordinator/src/main/java/org/apache/uniffle/coordinator/ApplicationManager.java:
##########
@@ -75,10 +77,13 @@ public ApplicationManager(CoordinatorConf conf) {
throw new UnsupportedOperationException("Unsupported selected storage
strategy.");
}
expired = conf.getLong(CoordinatorConf.COORDINATOR_APP_EXPIRED);
- QuotaManager quotaManager = new QuotaManager(conf);
- this.currentUserAndApp = quotaManager.getCurrentUserAndApp();
- this.appIdToUser = quotaManager.getAppIdToUser();
- this.defaultUserApps = quotaManager.getDefaultUserApps();
+ if
(conf.get(CoordinatorConf.COORDINATOR_ACCESS_CHECKERS).stream().map(String::trim).collect(Collectors.toList())
+ .contains(AccessQuotaChecker.class.getCanonicalName())) {
+ this.quotaManager = new QuotaManager(conf);
+ this.currentUserAndApp = quotaManager.getCurrentUserAndApp();
+ this.appIdToUser = quotaManager.getAppIdToUser();
+ this.defaultUserApps = quotaManager.getDefaultUserApps();
Review Comment:
Can we remove `defaultUserApps` in this class?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]