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-424. When HAWQ RM keeps getting 0 GRM containers query resource request is not timed out
Date Sun, 21 Feb 2016 23:37:07 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 9deb8f600 -> 27b12112f


HAWQ-424. When HAWQ RM keeps getting 0 GRM containers query resource request is not timed
out


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

Branch: refs/heads/master
Commit: 27b12112f15913a88d5ee5e2321593af598667b7
Parents: 9deb8f6
Author: YI JIN <yjin@pivotal.io>
Authored: Mon Feb 22 10:29:05 2016 +1100
Committer: YI JIN <yjin@pivotal.io>
Committed: Mon Feb 22 10:29:05 2016 +1100

----------------------------------------------------------------------
 .../resourcemanager/resourcebroker/resourcebroker_LIBYARN.c        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/27b12112/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c b/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
index c97e340..1e8c7ac 100644
--- a/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
+++ b/src/backend/resourcemanager/resourcebroker/resourcebroker_LIBYARN.c
@@ -868,7 +868,7 @@ int handleRB2RM_AllocatedResource(void)
 	removePendingResourceRequestInRootQueue(
 		response.MemoryMB * (response.ExpectedContainerCount - acceptedcount),
 		response.Core     * (response.ExpectedContainerCount - acceptedcount),
-		response.Result == FUNC_RETURN_OK);
+		(response.Result == FUNC_RETURN_OK) && (acceptedcount > 0));
 
 	elog(LOG, "Resource manager accepted YARN containers (%d MB, %d CORE) x %d "
 			  "from resource broker, expected %d containers, skipped %d containers.",


Mime
View raw message