Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6F6410CCC for ; Fri, 21 Mar 2014 20:53:58 +0000 (UTC) Received: (qmail 7578 invoked by uid 500); 21 Mar 2014 20:53:52 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 7249 invoked by uid 500); 21 Mar 2014 20:53:46 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 7203 invoked by uid 99); 21 Mar 2014 20:53:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2014 20:53:45 +0000 Date: Fri, 21 Mar 2014 20:53:45 +0000 (UTC) From: "Manukranth Kolloju (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-10808) Simplify Leases by using a ConcurrentHashMap MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)