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 D3A1B105E7 for ; Fri, 25 Oct 2013 05:41:43 +0000 (UTC) Received: (qmail 49569 invoked by uid 500); 25 Oct 2013 05:41:39 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 49110 invoked by uid 500); 25 Oct 2013 05:41:33 -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 49080 invoked by uid 99); 25 Oct 2013 05:41:30 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Oct 2013 05:41:30 +0000 Date: Fri, 25 Oct 2013 05:41:30 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-9840) Large scans and BlockCache evictions problems MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Lars Hofhansl created HBASE-9840: ------------------------------------ Summary: Large scans and BlockCache evictions problems Key: HBASE-9840 URL: https://issues.apache.org/jira/browse/HBASE-9840 Project: HBase Issue Type: Bug Reporter: Lars Hofhansl I just ran into a scenario that baffled me first, but after some reflection makes sense. I ran a very large scan that filled up most of the block cache with my scan's data. I ran that scan a few times. That I ran a smaller scan, and this scan will never get all its blocks cached if it does not fit into the remaining BlockCache, regardless how I often I run it. The reason is that the block of the first large scan were all promoted. Since the 2nd scan did not fully fit into the cache all block a round-robin evicted as I rerun the scan, and those blocks will never get accessed more than once before they get evicted again. Since promoted blocks are not demoted the large scan's block will never be evicted unless we have another small enough scan that can promote its blocks. Not sure what the proper solution is, but it seems only a LRU cache that can expire blocks over time would solve. Granted, this is a pretty special case. -- This message was sent by Atlassian JIRA (v6.1#6144)