From 3faa38986082fd0b6a849f107aa20fd4f32882a6 Mon Sep 17 00:00:00 2001 From: Gonzalo Riestra Date: Wed, 13 Mar 2019 18:16:08 +0100 Subject: [PATCH] improve logs --- scripts-available/CDB_GhostTables.sql | 4 ++-- test/CDB_GhostTables_expect | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts-available/CDB_GhostTables.sql b/scripts-available/CDB_GhostTables.sql index 6fed1e8..59dab7f 100644 --- a/scripts-available/CDB_GhostTables.sql +++ b/scripts-available/CDB_GhostTables.sql @@ -33,7 +33,7 @@ AS $$ except Exception as err: error = "client_error - %s" % str(err) # NOTE: no retries on connection error - plpy.warning('Invalidation Service connection error: ' + str(err)) + plpy.warning('Error trying to connect to Invalidation Service to link Ghost Tables: ' + str(err)) break try: @@ -43,7 +43,7 @@ AS $$ error = "request_error - %s" % str(err) client = GD['invalidation'] = None # force reconnect if not tis_retry: - plpy.warning('Invalidation Service error: ' + str(err)) + plpy.warning('Error calling Invalidation Service to link Ghost Tables: ' + str(err)) break tis_retry -= 1 # try reconnecting $$ LANGUAGE 'plpythonu' VOLATILE PARALLEL UNSAFE; diff --git a/test/CDB_GhostTables_expect b/test/CDB_GhostTables_expect index 4300a01..0a42733 100644 --- a/test/CDB_GhostTables_expect +++ b/test/CDB_GhostTables_expect @@ -3,7 +3,7 @@ NOTICE: _CDB_LinkGhostTables() called with username=fulanito, event_name=USER -WARNING: Invalidation Service error: Error -2 connecting fake-tis-host:3142. Name or service not known. +WARNING: Error calling Invalidation Service to link Ghost Tables: Error -2 connecting fake-tis-host:3142. Name or service not known. NOTICE: _CDB_LinkGhostTables() called with username=fulanito, event_name=USER BEGIN @@ -11,7 +11,7 @@ cdb_ddl_execution 0 CREATE TABLE 1 -WARNING: Invalidation Service error: Error -2 connecting fake-tis-host:3142. Name or service not known. +WARNING: Error calling Invalidation Service to link Ghost Tables: Error -2 connecting fake-tis-host:3142. Name or service not known. NOTICE: _CDB_LinkGhostTables() called with username=fulanito, event_name=CREATE TABLE COMMIT