You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Yulin Niu (Jira)" <ji...@apache.org> on 2020/12/24 03:17:06 UTC

[jira] [Created] (HBASE-25442) Refactor MultiVersionConcurrencyControl: replace readWaiters.notifyAll() with WriteEntry.notify()

Yulin Niu created HBASE-25442:
---------------------------------

             Summary: Refactor MultiVersionConcurrencyControl: replace readWaiters.notifyAll() with WriteEntry.notify()
                 Key: HBASE-25442
                 URL: https://issues.apache.org/jira/browse/HBASE-25442
             Project: HBase
          Issue Type: Improvement
            Reporter: Yulin Niu
            Assignee: Yulin Niu


[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MultiVersionConcurrencyControl.java#L217] 

here the notifyAll() wake up all thread, even the read point no big enough, bring extra thread switch

[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MultiVersionConcurrencyControl.java#L143] 

WriteEntry object can be thread local to reuse



--
This message was sent by Atlassian Jira
(v8.3.4#803005)