Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E39FD8751 for ; Wed, 7 Sep 2011 06:34:01 +0000 (UTC) Received: (qmail 4269 invoked by uid 500); 7 Sep 2011 06:34:01 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 3550 invoked by uid 500); 7 Sep 2011 06:33:52 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 3332 invoked by uid 99); 7 Sep 2011 06:33:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 06:33:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 06:33:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C649A843CE for ; Wed, 7 Sep 2011 06:33:10 +0000 (UTC) Date: Wed, 7 Sep 2011 06:33:10 +0000 (UTC) From: "gaojinchao (JIRA)" To: issues@hbase.apache.org Message-ID: <1412044669.23721.1315377190808.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-2158) Change how high/low global limit works; start taking on writes as soon as we dip below high limit rather than block until low limit as we currently do. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098645#comment-13098645 ] gaojinchao commented on HBASE-2158: ----------------------------------- when memory reach the low limit, we should start a emergency Flusher. So I think It is diffcult to reach the high limit and if we reach it ,we will flush one by one. if (fqe == null || fqe instanceof WakeupFlushThread) { if (isAboveLowWaterMark()) { LOG.info("Flush thread woke up with memory above low water."); if (!flushOneForGlobalPressure()) { // Wasn't able to flush any region, but we're above low water mark // This is unlikely to happen, but might happen when closing the // entire server - another thread is flushing regions. We'll just // sleep a little bit to avoid spinning, and then pretend that // we flushed one, so anyone blocked will check again lock.lock(); try { Thread.sleep(1000); flushOccurred.signalAll(); } finally { lock.unlock(); } } // Enqueue another one of these tokens so we'll wake up again wakeupFlushThread(); } continue; } > Change how high/low global limit works; start taking on writes as soon as we dip below high limit rather than block until low limit as we currently do. > ------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-2158 > URL: https://issues.apache.org/jira/browse/HBASE-2158 > Project: HBase > Issue Type: Improvement > Reporter: stack > > A Ryan Rawson suggestion. See HBASE-2149 for more context. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira