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 B8FF11877C for ; Thu, 29 Oct 2015 02:27:01 +0000 (UTC) Received: (qmail 71216 invoked by uid 500); 29 Oct 2015 02:27:01 -0000 Delivered-To: apmail-hawq-commits-archive@hawq.apache.org Received: (qmail 71165 invoked by uid 500); 29 Oct 2015 02:27:01 -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 71155 invoked by uid 99); 29 Oct 2015 02:27:01 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 02:27:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2B546C0F9C for ; Thu, 29 Oct 2015 02:27:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 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, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2rxKdUGnQ7Mt for ; Thu, 29 Oct 2015 02:26:53 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id F14BA42B79 for ; Thu, 29 Oct 2015 02:26:52 +0000 (UTC) Received: (qmail 71118 invoked by uid 99); 29 Oct 2015 02:26:52 -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, 29 Oct 2015 02:26:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6F7C7E0BC6; Thu, 29 Oct 2015 02:26:52 +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: X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-48. Change warning log message to display correct numbers Date: Thu, 29 Oct 2015 02:26:52 +0000 (UTC) Repository: incubator-hawq Updated Branches: refs/heads/master 0eb823e45 -> 122e75dff HAWQ-48. Change warning log message to display correct numbers Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/122e75df Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/122e75df Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/122e75df Branch: refs/heads/master Commit: 122e75dffb3b326fe5657e845c592b029a13b1a9 Parents: 0eb823e Author: Yi Jin Authored: Thu Oct 29 10:24:34 2015 +0800 Committer: Yi Jin Committed: Thu Oct 29 10:24:34 2015 +0800 ---------------------------------------------------------------------- src/backend/resourcemanager/resqueuemanager.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/122e75df/src/backend/resourcemanager/resqueuemanager.c ---------------------------------------------------------------------- diff --git a/src/backend/resourcemanager/resqueuemanager.c b/src/backend/resourcemanager/resqueuemanager.c index fb01646..6b7a3ad 100644 --- a/src/backend/resourcemanager/resqueuemanager.c +++ b/src/backend/resourcemanager/resqueuemanager.c @@ -4090,10 +4090,12 @@ bool isResourceAcceptable(ConnectionTrack conn, int segnumact) if ( PRESPOOL->SlavesHostCount - rm_tolerate_nseg_limit > list_length(conn->Resource) ) { - elog(WARNING, "Find virtual segments are dispatched to %d segments, " - "less than %d", - segnumact, - list_length(conn->Resource)); + elog(WARNING, "Find virtual segments are dispatched to %d segments in " + "the cluster containing %d segments defined in slaves file. " + "The number of excluded segments are more than %d.", + list_length(conn->Resource), + PRESPOOL->SlavesHostCount, + rm_tolerate_nseg_limit); return false; } }