hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guangxu Cheng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17951) Log the region's information in HRegion#checkResources
Date Thu, 27 Apr 2017 02:18:04 GMT

    [ https://issues.apache.org/jira/browse/HBASE-17951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985883#comment-15985883
] 

Guangxu Cheng commented on HBASE-17951:
---------------------------------------

Yes, LongAdder is faster than AtomicLong.
I want to use incrementAndGet, but LongAdder is not implemented.
If we use LongAdder, can we do like this?
{code}
long tmpBlockedRequestsCount;
synchronized (blockedRequestsCount) {
  blockedRequestsCount.increment();
  tmpBlockedRequestsCount = getBlockedRequestsCount();
}
{code}
Do you have any suggestions? Thanks. [~anoop.hbase]

> Log the region's information in HRegion#checkResources
> ------------------------------------------------------
>
>                 Key: HBASE-17951
>                 URL: https://issues.apache.org/jira/browse/HBASE-17951
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0, 1.3.0, 1.2.5
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>         Attachments: HBASE-17951-master-v1.patch, HBASE-17951-master-v2.patch
>
>
> We throw RegionTooBusyException in HRegion#checkResources if above memstore limit. On
the server side,we just increment the value of blockedRequestsCount and do not print the
region's information.
> I think we should also print the region's information in server-side, so that we can
easily find the busy regions.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message