Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ protected boolean isExceedThrottleQuotaEnabled() {
* username
* @param ugi The request's UserGroupInformation
*/
private String getQuotaUserName(final UserGroupInformation ugi) {
String getQuotaUserName(final UserGroupInformation ugi) {
if (userOverrideRequestAttributeKey == null) {
return ugi.getShortUserName();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public OperationQuota checkScanQuota(final Region region,
LOG.debug("Throttling exception for user=" + ugi.getUserName() + " table=" + table + " scan="
+ scanRequest.getScannerId() + ": " + e.getMessage());

rsServices.getMetrics().recordThrottleException(e.getType(), ugi.getShortUserName(),
rsServices.getMetrics().recordThrottleException(e.getType(), quotaCache.getQuotaUserName(ugi),
table.getNameAsString());

throw e;
Expand Down Expand Up @@ -276,7 +276,7 @@ public OperationQuota checkBatchQuota(final Region region, final int numWrites,
LOG.debug("Throttling exception for user=" + ugi.getUserName() + " table=" + table
+ " numWrites=" + numWrites + " numReads=" + numReads + ": " + e.getMessage());

rsServices.getMetrics().recordThrottleException(e.getType(), ugi.getShortUserName(),
rsServices.getMetrics().recordThrottleException(e.getType(), quotaCache.getQuotaUserName(ugi),
table.getNameAsString());

throw e;
Expand Down