bbeaudreault commented on code in PR #5424:
URL: https://github.com/apache/hbase/pull/5424#discussion_r1337109318
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java:
##########
@@ -74,12 +83,15 @@ public class QuotaCache implements Stoppable {
private final ConcurrentHashMap<TableName, Double> tableMachineQuotaFactors =
new ConcurrentHashMap<>();
private final RegionServerServices rsServices;
+ private final String userOverrideRequestAttributeKey;
private QuotaRefresherChore refreshChore;
private boolean stopped = true;
public QuotaCache(final RegionServerServices rsServices) {
this.rsServices = rsServices;
+ this.userOverrideRequestAttributeKey = rsServices.getConfiguration()
+ .get(QUOTA_USER_REQUEST_ATTRIBUTE_OVERRIDE_KEY,
QUOTA_USER_REQUEST_ATTRIBUTE_OVERRIDE_KEY);
Review Comment:
To me it makes sense for `hbase.quota.user.override.key ->
hbase.quota.user.override`. So the user would pass an attribute
`hbase.quota.user.override -> foo`
But how about we just default to empty and skip the debate? Personally I
think this is a very long attribute name.
--
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]