[ 
https://issues.apache.org/jira/browse/HBASE-27676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaolin Ha updated HBASE-27676:
-------------------------------
    Description: 
{code:java}
int scanQueues = Math.max(0, (int) Math.floor(readQueues * callqScanShare));
int scanHandlers = Math.max(0, (int) Math.floor(readHandlers * callqScanShare));

if ((readQueues - scanQueues) > 0) {
  readQueues -= scanQueues;
  readHandlers -= scanHandlers;
} else {
  scanQueues = 0;
  scanHandlers = 0;
} {code}
When readQueues * callqScanShare < 1 but readHandlers * callqScanShare > 1, 
there will be some iddle scan handlers with NO scan queues.

  was:
{code:java}
int scanQueues = Math.max(0, (int) Math.floor(readQueues * callqScanShare));
int scanHandlers = Math.max(0, (int) Math.floor(readHandlers * callqScanShare));

if ((readQueues - scanQueues) > 0) {
  readQueues -= scanQueues;
  readHandlers -= scanHandlers;
} else {
  scanQueues = 0;
  scanHandlers = 0;
} {code}
When readQueues * callqScanShare < 1 but readHandlers * callqScanShare > 1, 
there will be some active scan handlers with NO scan queues.


> Scan handlers in the RPC executor should match at least one scan queues
> -----------------------------------------------------------------------
>
>                 Key: HBASE-27676
>                 URL: https://issues.apache.org/jira/browse/HBASE-27676
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 2.5.3
>            Reporter: Xiaolin Ha
>            Assignee: Xiaolin Ha
>            Priority: Minor
>
> {code:java}
> int scanQueues = Math.max(0, (int) Math.floor(readQueues * callqScanShare));
> int scanHandlers = Math.max(0, (int) Math.floor(readHandlers * 
> callqScanShare));
> if ((readQueues - scanQueues) > 0) {
>   readQueues -= scanQueues;
>   readHandlers -= scanHandlers;
> } else {
>   scanQueues = 0;
>   scanHandlers = 0;
> } {code}
> When readQueues * callqScanShare < 1 but readHandlers * callqScanShare > 1, 
> there will be some iddle scan handlers with NO scan queues.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to