hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allan Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18144) Forward-port the old exclusive row lock; there are scenarios where it performs better
Date Tue, 20 Jun 2017 06:07:00 GMT

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

Allan Yang commented on HBASE-18144:
------------------------------------

{quote}
The write-lock attempt is blocked (not able to acquire the lock), and this attempt also blocks
other read attempts on the same row it looks like.
{quote}
[~jerryhe], you are right, ReentrantReadWriteLock is a 'write first' lock. If some thread
is waiting on the write lock, it will also block any attempt to grab the readlock. Otherwise,
if some thread is continuing read the object, the write thread will never have chance to write.


> Forward-port the old exclusive row lock; there are scenarios where it performs better
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-18144
>                 URL: https://issues.apache.org/jira/browse/HBASE-18144
>             Project: HBase
>          Issue Type: Bug
>          Components: Increment
>    Affects Versions: 1.2.5
>            Reporter: stack
>            Assignee: stack
>             Fix For: 2.0.0, 1.3.2, 1.2.7
>
>         Attachments: DisorderedBatchAndIncrementUT.patch, HBASE-18144.master.001.patch
>
>
> Description to follow.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message