You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Manukranth Kolloju (JIRA)" <ji...@apache.org> on 2014/03/21 21:53:45 UTC
[jira] [Created] (HBASE-10808) Simplify Leases by using a
ConcurrentHashMap
Manukranth Kolloju created HBASE-10808:
------------------------------------------
Summary: Simplify Leases by using a ConcurrentHashMap
Key: HBASE-10808
URL: https://issues.apache.org/jira/browse/HBASE-10808
Project: HBase
Issue Type: Bug
Components: Scanners
Affects Versions: 0.89-fb
Reporter: Manukranth Kolloju
Assignee: Manukranth Kolloju
Priority: Minor
Fix For: 0.89-fb
This fix simplifies the Leases to use a ConcurrentHashMap instead of a DelayQueue so as to avoid the Synchronization cost. The LeaseChecker now should check the ConcurrentHashMap periodically to check if a scanner has been inactive for atleast the max time. This has a weaker guarantee on when the lease will be expired but is more efficient and decreases the amount of contention.
--
This message was sent by Atlassian JIRA
(v6.2#6252)