hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject incubator-hawq git commit: HAWQ-612. Improve error message if unavailable segments exceeds GUC
Date Fri, 01 Apr 2016 02:05:26 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 02a1c6c22 -> 7fef48058


HAWQ-612. Improve error message if unavailable segments exceeds GUC


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

Branch: refs/heads/master
Commit: 7fef48058c3572f4c4454d1726d07eefdfe0558c
Parents: 02a1c6c
Author: Wen Lin <wlin@pivotal.io>
Authored: Fri Apr 1 10:04:33 2016 +0800
Committer: Wen Lin <wlin@pivotal.io>
Committed: Fri Apr 1 10:04:33 2016 +0800

----------------------------------------------------------------------
 src/backend/resourcemanager/requesthandler.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/7fef4805/src/backend/resourcemanager/requesthandler.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/requesthandler.c b/src/backend/resourcemanager/requesthandler.c
index 7112ba3..4e24848 100644
--- a/src/backend/resourcemanager/requesthandler.c
+++ b/src/backend/resourcemanager/requesthandler.c
@@ -392,10 +392,12 @@ bool handleRMRequestAcquireResource(void **arg)
 	if ( unavailcount > rejectlimit )
 	{
 		snprintf(errorbuf, sizeof(errorbuf),
-				 "%d of %d segments %s unavailable",
+				 "%d of %d segments %s unavailable, exceeds %.1f%% defined in GUC hawq_rm_rejectrequest_nseg_limit.
"
+				 "The allocation request is rejected.",
 				 unavailcount,
 				 PRESPOOL->SlavesHostCount,
-				 unavailcount == 1 ? "is" : "are");
+				 unavailcount == 1 ? "is" : "are",
+				 rm_rejectrequest_nseg_limit*100.0);
 		elog(WARNING, "ConnID %d. %s", (*conntrack)->ConnID, errorbuf);
 		res = RESOURCEPOOL_TOO_MANY_UAVAILABLE_HOST;
 		goto sendresponse;


Mime
View raw message