Skip to content

Commit 971914b

Browse files
committed
Fix pgbench wait-until-heat-death-of-the-universe bug
The smoke-tests errand now properly waits for pgbench to exit, before running the psql cleanup routines.
1 parent db6a5cb commit 971914b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

jobs/smoke-tests/templates/bin/run

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ done
5959
echo
6060
echo "done with tests; waiting for pgbench to finish up"
6161
echo
62-
63-
wait
62+
wait $PGBENCH
6463

6564
echo
6665
echo "pgbench exited $?"

jobs/smoke-tests/templates/sql/pgbench_cleanup.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ DO $$
1414
tablename LIKE 'pgbench\_%'
1515
LOOP
1616
EXECUTE 'DROP TABLE ' || quote_ident(row.schemaname) || '.' || quote_ident(row.tablename);
17-
RAISE INFO 'Dropped table: %', quote_ident(row.schemaname) || '.' || quote_ident(row.tablename);
1817
END LOOP;
1918
END $$
2019
LANGUAGE plpgsql;

0 commit comments

Comments
 (0)