You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by ji...@apache.org on 2015/12/15 07:15:55 UTC

incubator-hawq git commit: HAWQ-244. Update ereport level from ERROR to WARNING when cleaning up global query resource

Repository: incubator-hawq
Updated Branches:
  refs/heads/master 11bdfd460 -> 56b0ab01a


HAWQ-244. Update ereport level from ERROR to WARNING when cleaning up global query resource


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

Branch: refs/heads/master
Commit: 56b0ab01a97066019b8a30e061a9cf530a8ed692
Parents: 11bdfd4
Author: Lirong Jian <ji...@gmail.com>
Authored: Thu Dec 10 17:41:47 2015 +0800
Committer: Lirong Jian <ji...@gmail.com>
Committed: Tue Dec 15 14:00:53 2015 +0800

----------------------------------------------------------------------
 src/backend/tcop/pquery.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/56b0ab01/src/backend/tcop/pquery.c
----------------------------------------------------------------------
diff --git a/src/backend/tcop/pquery.c b/src/backend/tcop/pquery.c
index 3e66817..78446aa 100644
--- a/src/backend/tcop/pquery.c
+++ b/src/backend/tcop/pquery.c
@@ -1061,13 +1061,13 @@ CleanupGlobalQueryResources(void)
 			ret = returnResource(qri->resource_id, errorbuf, sizeof(errorbuf));
 			if (ret != FUNC_RETURN_OK)
 			{
-				ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("%s",errorbuf)));
+				ereport(WARNING, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("%s",errorbuf)));
 			}
 
 			ret = unregisterConnectionInRM(qri->resource_id, errorbuf, sizeof(errorbuf));
 			if (ret != FUNC_RETURN_OK)
 			{
-				ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("%s",errorbuf)));
+				ereport(WARNING, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("%s",errorbuf)));
 			}
 
 			releaseResourceContext(qri->resource_id);