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 5E19D18BFF for ; Mon, 1 Feb 2016 23:25:57 +0000 (UTC) Received: (qmail 27987 invoked by uid 500); 1 Feb 2016 23:25:57 -0000 Delivered-To: apmail-hawq-commits-archive@hawq.apache.org Received: (qmail 27951 invoked by uid 500); 1 Feb 2016 23:25:57 -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 27939 invoked by uid 99); 1 Feb 2016 23:25:57 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 23:25:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9B9ABC0E5B for ; Mon, 1 Feb 2016 23:25:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.236 X-Spam-Level: * X-Spam-Status: No, score=1.236 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.545, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9JAjYd5-tLDc for ; Mon, 1 Feb 2016 23:25:56 +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 27C2831ADD for ; Mon, 1 Feb 2016 23:25:54 +0000 (UTC) Received: (qmail 27758 invoked by uid 99); 1 Feb 2016 23:25:54 -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; Mon, 01 Feb 2016 23:25:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 49DF2DFDC7; Mon, 1 Feb 2016 23:25:54 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: yjin@apache.org To: commits@hawq.incubator.apache.org Message-Id: <5b0c5e6bdac7464d94f658f55ee45682@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-380. Wrongly validate resource pool status when index of allocated resources is not complete Date: Mon, 1 Feb 2016 23:25:54 +0000 (UTC) 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 Authored: Tue Feb 2 10:17:13 2016 +1100 Committer: YI JIN 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)