[
https://issues.apache.org/jira/browse/HBASE-9144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731626#comment-13731626
]
Elliott Clark commented on HBASE-9144:
--------------------------------------
The thread will be sleeping until the lease is expired. If the Leases thread
wakes up and creates an iterator then the lease would already have been
notified. If the remove comes before the Leases thread wakes up then the
iterator won't have the scanner in it.
The only way this changes anything is if you think that iterating through the
leases will take more than the 15ms resolution of the previous DelayQueue.
> Leases class has contention that's not needed
> ---------------------------------------------
>
> Key: HBASE-9144
> URL: https://issues.apache.org/jira/browse/HBASE-9144
> Project: HBase
> Issue Type: Bug
> Components: regionserver
> Affects Versions: 0.95.1
> Reporter: Elliott Clark
> Assignee: Elliott Clark
> Priority: Critical
> Fix For: 0.95.2
>
> Attachments: HBASE-9144-0.patch, Sheet1.pdf
>
>
> The Leases class has lots of thread contention. These locks are there to
> ensure that all timeouts are met exactly. This isn't needed in HBase.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira