hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From y...@apache.org
Subject incubator-hawq git commit: HAWQ-380. Wrongly validate resource pool status when index of allocated resources is not complete
Date Mon, 01 Feb 2016 23:25:54 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 263fe46e7 -> 210a195c2


HAWQ-380. Wrongly validate resource pool status when index of allocated resources is not complete


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/210a195c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/210a195c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/210a195c

Branch: refs/heads/master
Commit: 210a195c247088caaa507b9d612a76ffd77815fc
Parents: 263fe46
Author: YI JIN <yjin@pivotal.io>
Authored: Tue Feb 2 10:17:13 2016 +1100
Committer: YI JIN <yjin@pivotal.io>
Committed: Tue Feb 2 10:17:13 2016 +1100

----------------------------------------------------------------------
 src/backend/resourcemanager/resourcepool.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/210a195c/src/backend/resourcemanager/resourcepool.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcepool.c b/src/backend/resourcemanager/resourcepool.c
index 918f401..8d39e67 100644
--- a/src/backend/resourcemanager/resourcepool.c
+++ b/src/backend/resourcemanager/resourcepool.c
@@ -3449,7 +3449,6 @@ void timeoutIdleGRMResourceToRBByRatio(int 		 ratioindex,
 			elog(LOG, "Resource manager decides to return container "INT64_FORMAT" in host %s",
 					  retcont->ID,
 					  retcont->HostName);
-			validateResourcePoolStatus(false);
 		}
 		else
 		{
@@ -3472,6 +3471,8 @@ void timeoutIdleGRMResourceToRBByRatio(int 		 ratioindex,
 	{
 		insertBBSTNode(tree, (BBSTNode)removeDQueueHeadNode(&tempskipnodes));
 	}
+
+	validateResourcePoolStatus(false);
 }
 
 bool hasSegmentGRMCapacityNotUpdated(void)


Mime
View raw message