hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jingcheng Du (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-15819) Cleanup unused lock in MultiVersionConsistencyControl in branch-1.0 and 1.1
Date Thu, 12 May 2016 10:00:17 GMT

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

Jingcheng Du updated HBASE-15819:
---------------------------------
    Attachment: HBASE-15819-branch-1.0.patch

> Cleanup unused lock in MultiVersionConsistencyControl in branch-1.0 and 1.1
> ---------------------------------------------------------------------------
>
>                 Key: HBASE-15819
>                 URL: https://issues.apache.org/jira/browse/HBASE-15819
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>            Reporter: Jingcheng Du
>            Assignee: Jingcheng Du
>         Attachments: HBASE-15819-branch-1.0.patch
>
>
> In MultiVersionConsistencyControl of branch-1.0 and branch-1.1, there is a unused lock
readWaiters, it is only referenced by {{boolean advanceMemstore(WriteEntry e)}},
> {code}
>     if (nextReadValue > 0) {
>       synchronized (readWaiters) {
>         readWaiters.notifyAll();
>       }
>     }
> {code}.
> Thus the readerWaiters.notifyAll() is not necessary, and could be cleaned up from the
code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message