Return-Path: X-Original-To: apmail-hawq-commits-archive@minotaur.apache.org Delivered-To: apmail-hawq-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A84B618BA0 for ; Thu, 24 Dec 2015 02:44:22 +0000 (UTC) Received: (qmail 79426 invoked by uid 500); 24 Dec 2015 02:44:17 -0000 Delivered-To: apmail-hawq-commits-archive@hawq.apache.org Received: (qmail 79384 invoked by uid 500); 24 Dec 2015 02:44:17 -0000 Mailing-List: contact commits-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list commits@hawq.incubator.apache.org Received: (qmail 79375 invoked by uid 99); 24 Dec 2015 02:44:17 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Dec 2015 02:44:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 075831804C1 for ; Thu, 24 Dec 2015 02:44:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.226 X-Spam-Level: * X-Spam-Status: No, score=1.226 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Hi4YKkBG9VmZ for ; Thu, 24 Dec 2015 02:44:16 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 0B09724C0C for ; Thu, 24 Dec 2015 02:44:14 +0000 (UTC) Received: (qmail 79159 invoked by uid 99); 24 Dec 2015 02:44:14 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Dec 2015 02:44:14 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E4B29E0B56; Thu, 24 Dec 2015 02:44:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: iweng@apache.org To: commits@hawq.incubator.apache.org Date: Thu, 24 Dec 2015 02:44:14 -0000 Message-Id: <3d151e96ce744edd9d67e5e58432759a@git.apache.org> In-Reply-To: <8cc93076eeef43aeb3f4965aca7b2fc2@git.apache.org> References: <8cc93076eeef43aeb3f4965aca7b2fc2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/4] incubator-hawq git commit: HAWQ-265. Change metadata share memory flush strategy: change log and flush conditions HAWQ-265. Change metadata share memory flush strategy: change log and flush conditions Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/ee194aae Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/ee194aae Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/ee194aae Branch: refs/heads/master Commit: ee194aaefea089b5f703574ace2ebeb6e8653d76 Parents: bf64845 Author: stanlyxiang Authored: Tue Dec 22 13:05:18 2015 +0800 Committer: stanlyxiang Committed: Tue Dec 22 13:05:18 2015 +0800 ---------------------------------------------------------------------- src/backend/cdb/cdbmetadatacache_process.c | 4 ++-- src/backend/utils/misc/guc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ee194aae/src/backend/cdb/cdbmetadatacache_process.c ---------------------------------------------------------------------- diff --git a/src/backend/cdb/cdbmetadatacache_process.c b/src/backend/cdb/cdbmetadatacache_process.c index f289e3b..7da48d2 100644 --- a/src/backend/cdb/cdbmetadatacache_process.c +++ b/src/backend/cdb/cdbmetadatacache_process.c @@ -417,9 +417,9 @@ ProcessMetadataCacheCheck() if (free_block_ratio < metadata_cache_free_block_max_ratio || cache_entry_ratio > metadata_cache_flush_ratio) { - if(cache_entry_num == metadata_cache_max_hdfs_file_num) + if(cache_entry_num >= metadata_cache_max_hdfs_file_num) { - elog(WARNING, "[MetadataCache] ProcessMetadataCacheCheck : Metadata cache is full."); + elog(LOG, "[MetadataCache] ProcessMetadataCacheCheck : Metadata cache is full.The cache entry num is:%ld. The metadata_cache_max_hdfs_file_num is:%d", cache_entry_num, metadata_cache_max_hdfs_file_num); } elog(DEBUG1, "[MetadataCache] ProcessMetadataCacheCheck cache_entry_ratio:%f", cache_entry_ratio); if (NULL == MetadataCacheLRUList) http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ee194aae/src/backend/utils/misc/guc.c ---------------------------------------------------------------------- diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index f1e5f8a..1915d6e 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -6504,7 +6504,7 @@ static struct config_int ConfigureNamesInt[] = NULL }, &metadata_cache_check_interval, - 60, 10, 3600, NULL, NULL + 30, 10, 3600, NULL, NULL }, { {