-- sleep 1 second to wait all QEs to exit, since QE exit in this situation is an
-- asynchronous procedure, 1 second may not guarantee they have exited in
-- extreme poor performant machines, but we have no better solution now, and this
-- test case is pretty necessary, so...
select pg_sleep(1);
-- verify all QEs of the exited session have gone, expect to return nothing
SELECT sess_id FROM tmp_sess_id, (SELECT get_segment_qe_session_ids() FROM gp_dist_random('gp_id')) sessions WHERE tmp_sess_id.sess_id = sessions.get_segment_qe_session_ids;
psql:@abs_srcdir@/sql/gang_mgmt_helper.sql:5: NOTICE: table "tmp_sess_id" does not exist, skipping
DROP TABLE
psql:@abs_srcdir@/sql/gang_mgmt_helper.sql:6: NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column(s) named 'sess_id' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
SELECT 1
CREATE FUNCTION
BEGIN
DECLARE CURSOR
SET
psql:@abs_srcdir@/sql/gang_mgmt_helper.sql:18: FATAL: User fault injection raised fatal
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
psql:@abs_srcdir@/sql/gang_mgmt_helper.sql:18: connection to server was lost
-- sleep 1 second to wait all QEs to exit, since QE exit in this situation is an
-- asynchronous procedure, 1 second may not guarantee they have exited in
-- extreme poor performant machines, but we have no better solution now, and this
-- test case is pretty necessary, so...
select pg_sleep(1);
pg_sleep
----------
(1 row)
-- verify all QEs of the exited session have gone, expect to return nothing
SELECT sess_id FROM tmp_sess_id, (SELECT get_segment_qe_session_ids() FROM gp_dist_random('gp_id')) sessions WHERE tmp_sess_id.sess_id = sessions.get_segment_qe_session_ids;