hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iw...@apache.org
Subject [2/4] incubator-hawq git commit: HAWQ-265. Change metadata share memory flush strategy: change log and flush conditions
Date Thu, 24 Dec 2015 02:44:14 GMT
 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 <stanly.sxiang@gmail.com>
Authored: Tue Dec 22 13:05:18 2015 +0800
Committer: stanlyxiang <stanly.sxiang@gmail.com>
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
 	},
 	{
 		{


Mime
View raw message