[ https://issues.apache.org/jira/browse/HBASE-19924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16446620#comment-16446620 ]
Hudson commented on HBASE-19924: -------------------------------- Results for branch branch-2.0 [build #202 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/202/]: (x) *{color:red}-1 overall{color}* ---- details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/202//General_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/202//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/202//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > hbase rpc throttling does not work for multi() with request count rater. > ------------------------------------------------------------------------ > > Key: HBASE-19924 > URL: https://issues.apache.org/jira/browse/HBASE-19924 > Project: HBase > Issue Type: Bug > Components: rpc > Affects Versions: 0.16.0, 1.2.6 > Reporter: huaxiang sun > Assignee: huaxiang sun > Priority: Major > Fix For: 2.0.0 > > Attachments: HBASE-19924-master-v001.patch, > HBASE-19924-master-v002.patch, HBASE-19924-master-v002.patch, > HBASE-19924-master-v002.patch, HBASE-19924-master-v002.patch > > > Basically, rpc throttling does not work for request count based rater for > multi. for the following code, when it calls limiter's checkQuota(), > numWrites/numReads is lost. > {code:java} > @Override > public void checkQuota(int numWrites, int numReads, int numScans) throws > ThrottlingException { > writeConsumed = estimateConsume(OperationType.MUTATE, numWrites, 100); > readConsumed = estimateConsume(OperationType.GET, numReads, 100); > readConsumed += estimateConsume(OperationType.SCAN, numScans, 1000); > writeAvailable = Long.MAX_VALUE; > readAvailable = Long.MAX_VALUE; > for (final QuotaLimiter limiter : limiters) { > if (limiter.isBypass()) continue; > limiter.checkQuota(writeConsumed, readConsumed); > readAvailable = Math.min(readAvailable, limiter.getReadAvailable()); > writeAvailable = Math.min(writeAvailable, limiter.getWriteAvailable()); > } > for (final QuotaLimiter limiter : limiters) { > limiter.grabQuota(writeConsumed, readConsumed); > } > }{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)