From 504ad08bc27b0d45ba11c49a41adf6998e1b20ec Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 27 Nov 2017 21:57:08 +0200 Subject: [PATCH] Increase sleep between launching gpfdist and running test queries. We've seen a lot of failures in the 'sreh' test in the pipeline, like this: --- 263,269 ---- FORMAT 'text' (delimiter '|') SEGMENT REJECT LIMIT 10000; SELECT * FROM sreh_ext; ! ERROR: connection failed dummy_protocol://DUMMY_LOCATION INSERT INTO sreh_target SELECT * FROM sreh_ext; NOTICE: Found 10 data formatting errors (10 or more input rows). Rejected related input data. SELECT count(*) FROM sreh_target; I don't really know, but I'm guessing it could be because it sometimes takes more than one second for gpfdist to fully start up, if there's a lot of disk or other activity. Increase the sleep time from 1 to 3 seconds; we'll see if that helps. (cherry picked from commit bb8575a9d58939a44218e5f7afa6ce32faf8d3c6) --- src/test/regress/input/sreh.source | 2 +- src/test/regress/output/sreh.source | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/regress/input/sreh.source b/src/test/regress/input/sreh.source index e559440979..c4c9af2772 100755 --- a/src/test/regress/input/sreh.source +++ b/src/test/regress/input/sreh.source @@ -128,7 +128,7 @@ DROP TABLE sreh_constr; -- ########################################################### CREATE EXTERNAL WEB TABLE gpfdist_sreh_start (x text) -execute E'((@bindir@/gpfdist -p 8080 -d @abs_srcdir@/data /dev/null 2>&1 &); sleep 1; echo "starting...") ' +execute E'((@bindir@/gpfdist -p 8080 -d @abs_srcdir@/data /dev/null 2>&1 &); sleep 3; echo "starting...") ' on SEGMENT 0 FORMAT 'text' (delimiter '|'); diff --git a/src/test/regress/output/sreh.source b/src/test/regress/output/sreh.source index c66f70056e..1323c48d7d 100755 --- a/src/test/regress/output/sreh.source +++ b/src/test/regress/output/sreh.source @@ -241,7 +241,7 @@ DROP TABLE sreh_constr; -- External Tables -- ########################################################### CREATE EXTERNAL WEB TABLE gpfdist_sreh_start (x text) -execute E'((@bindir@/gpfdist -p 8080 -d @abs_srcdir@/data /dev/null 2>&1 &); sleep 1; echo "starting...") ' +execute E'((@bindir@/gpfdist -p 8080 -d @abs_srcdir@/data /dev/null 2>&1 &); sleep 3; echo "starting...") ' on SEGMENT 0 FORMAT 'text' (delimiter '|'); CREATE EXTERNAL WEB TABLE gpfdist_sreh_stop (x text) -- GitLab