Fix regression test outputs

warn_grant
Hadi Moshayedi 2019-03-22 14:35:49 -07:00 committed by Philip Dubé
parent 2dceabb047
commit e8660646e0
2 changed files with 107 additions and 99 deletions

View File

@ -5,12 +5,14 @@ run_command_on_workers
(localhost,57637,t,"GRANT ROLE") (localhost,57637,t,"GRANT ROLE")
(localhost,57638,t,"GRANT ROLE") (localhost,57638,t,"GRANT ROLE")
s1: WARNING: not propagating GRANT command to worker nodes
step s1-grant: step s1-grant:
GRANT ALL ON test_table TO test_user_1; GRANT ALL ON test_table TO test_user_1;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_1'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_1');
GRANT ALL ON test_table TO test_user_2; GRANT ALL ON test_table TO test_user_2;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2');
s1: WARNING: not propagating GRANT command to worker nodes
bool_and bool_and
t t

View File

@ -2,283 +2,289 @@ Parsed test spec with 2 sessions
starting permutation: s1-begin s2-begin s2-reindex s1-insert s2-commit s1-commit starting permutation: s1-begin s2-begin s2-reindex s1-insert s2-commit s1-commit
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s2-reindex: step s2-reindex:
REINDEX TABLE test_table; REINDEX TABLE test_table;
ERROR: must be owner of table test_table ERROR: must be owner of table test_table
step s1-insert: step s1-insert:
UPDATE test_table SET column2 = 1; UPDATE test_table SET column2 = 1;
step s2-commit: step s2-commit:
COMMIT; COMMIT;
step s1-commit: step s1-commit:
COMMIT; COMMIT;
starting permutation: s1-grant s1-begin s2-begin s2-reindex s1-insert s2-insert s2-commit s1-commit starting permutation: s1-grant s1-begin s2-begin s2-reindex s1-insert s2-insert s2-commit s1-commit
step s1-grant: step s1-grant:
SET ROLE test_user_1; SET ROLE test_user_1;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2');
GRANT ALL ON test_table TO test_user_2; GRANT ALL ON test_table TO test_user_2;
s1: WARNING: not propagating GRANT command to worker nodes
bool_and bool_and
t t
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s2-reindex: step s2-reindex:
REINDEX TABLE test_table; REINDEX TABLE test_table;
ERROR: must be owner of table test_table ERROR: must be owner of table test_table
step s1-insert: step s1-insert:
UPDATE test_table SET column2 = 1; UPDATE test_table SET column2 = 1;
step s2-insert: step s2-insert:
UPDATE test_table SET column2 = 2; UPDATE test_table SET column2 = 2;
ERROR: current transaction is aborted, commands ignored until end of transaction block ERROR: current transaction is aborted, commands ignored until end of transaction block
step s2-commit: step s2-commit:
COMMIT; COMMIT;
step s1-commit: step s1-commit:
COMMIT; COMMIT;
starting permutation: s1-grant s1-begin s2-begin s1-reindex s2-insert s1-insert s1-commit s2-commit starting permutation: s1-grant s1-begin s2-begin s1-reindex s2-insert s1-insert s1-commit s2-commit
step s1-grant: step s1-grant:
SET ROLE test_user_1; SET ROLE test_user_1;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2');
GRANT ALL ON test_table TO test_user_2; GRANT ALL ON test_table TO test_user_2;
s1: WARNING: not propagating GRANT command to worker nodes
bool_and bool_and
t t
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s1-reindex: step s1-reindex:
REINDEX TABLE test_table; REINDEX TABLE test_table;
step s2-insert: step s2-insert:
UPDATE test_table SET column2 = 2; UPDATE test_table SET column2 = 2;
<waiting ...> <waiting ...>
step s1-insert: step s1-insert:
UPDATE test_table SET column2 = 1; UPDATE test_table SET column2 = 1;
step s1-commit: step s1-commit:
COMMIT; COMMIT;
step s2-insert: <... completed> step s2-insert: <... completed>
step s2-commit: step s2-commit:
COMMIT; COMMIT;
starting permutation: s1-begin s2-begin s2-index s1-insert s2-commit s1-commit s2-drop-index starting permutation: s1-begin s2-begin s2-index s1-insert s2-commit s1-commit s2-drop-index
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s2-index: step s2-index:
CREATE INDEX test_index ON test_table(column1); CREATE INDEX test_index ON test_table(column1);
ERROR: must be owner of table test_table ERROR: must be owner of table test_table
step s1-insert: step s1-insert:
UPDATE test_table SET column2 = 1; UPDATE test_table SET column2 = 1;
step s2-commit: step s2-commit:
COMMIT; COMMIT;
step s1-commit: step s1-commit:
COMMIT; COMMIT;
step s2-drop-index: step s2-drop-index:
DROP INDEX IF EXISTS test_index; DROP INDEX IF EXISTS test_index;
starting permutation: s1-grant s1-begin s2-begin s2-insert s1-index s2-insert s2-commit s1-commit s1-drop-index starting permutation: s1-grant s1-begin s2-begin s2-insert s1-index s2-insert s2-commit s1-commit s1-drop-index
step s1-grant: step s1-grant:
SET ROLE test_user_1; SET ROLE test_user_1;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2');
GRANT ALL ON test_table TO test_user_2; GRANT ALL ON test_table TO test_user_2;
s1: WARNING: not propagating GRANT command to worker nodes
bool_and bool_and
t t
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s2-insert: step s2-insert:
UPDATE test_table SET column2 = 2; UPDATE test_table SET column2 = 2;
step s1-index: step s1-index:
CREATE INDEX test_index ON test_table(column1); CREATE INDEX test_index ON test_table(column1);
<waiting ...> <waiting ...>
step s2-insert: step s2-insert:
UPDATE test_table SET column2 = 2; UPDATE test_table SET column2 = 2;
step s2-commit: step s2-commit:
COMMIT; COMMIT;
step s1-index: <... completed> step s1-index: <... completed>
step s1-commit: step s1-commit:
COMMIT; COMMIT;
step s1-drop-index: step s1-drop-index:
DROP INDEX IF EXISTS test_index; DROP INDEX IF EXISTS test_index;
starting permutation: s1-grant s1-begin s2-begin s1-index s2-index s1-insert s1-commit s2-commit s1-drop-index s2-drop-index starting permutation: s1-grant s1-begin s2-begin s1-index s2-index s1-insert s1-commit s2-commit s1-drop-index s2-drop-index
step s1-grant: step s1-grant:
SET ROLE test_user_1; SET ROLE test_user_1;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2');
GRANT ALL ON test_table TO test_user_2; GRANT ALL ON test_table TO test_user_2;
s1: WARNING: not propagating GRANT command to worker nodes
bool_and bool_and
t t
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s1-index: step s1-index:
CREATE INDEX test_index ON test_table(column1); CREATE INDEX test_index ON test_table(column1);
step s2-index: step s2-index:
CREATE INDEX test_index ON test_table(column1); CREATE INDEX test_index ON test_table(column1);
ERROR: must be owner of table test_table ERROR: must be owner of table test_table
step s1-insert: step s1-insert:
UPDATE test_table SET column2 = 1; UPDATE test_table SET column2 = 1;
step s1-commit: step s1-commit:
COMMIT; COMMIT;
step s2-commit: step s2-commit:
COMMIT; COMMIT;
step s1-drop-index: step s1-drop-index:
DROP INDEX IF EXISTS test_index; DROP INDEX IF EXISTS test_index;
step s2-drop-index: step s2-drop-index:
DROP INDEX IF EXISTS test_index; DROP INDEX IF EXISTS test_index;
starting permutation: s1-begin s2-begin s2-truncate s1-insert s2-commit s1-commit starting permutation: s1-begin s2-begin s2-truncate s1-insert s2-commit s1-commit
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s2-truncate: step s2-truncate:
TRUNCATE test_table; TRUNCATE test_table;
ERROR: permission denied for table test_table ERROR: permission denied for table test_table
step s1-insert: step s1-insert:
UPDATE test_table SET column2 = 1; UPDATE test_table SET column2 = 1;
step s2-commit: step s2-commit:
COMMIT; COMMIT;
step s1-commit: step s1-commit:
COMMIT; COMMIT;
starting permutation: s1-grant s1-begin s2-begin s1-truncate s2-insert s1-insert s1-commit s2-commit starting permutation: s1-grant s1-begin s2-begin s1-truncate s2-insert s1-insert s1-commit s2-commit
step s1-grant: step s1-grant:
SET ROLE test_user_1; SET ROLE test_user_1;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2');
GRANT ALL ON test_table TO test_user_2; GRANT ALL ON test_table TO test_user_2;
s1: WARNING: not propagating GRANT command to worker nodes
bool_and bool_and
t t
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s1-truncate: step s1-truncate:
TRUNCATE test_table; TRUNCATE test_table;
step s2-insert: step s2-insert:
UPDATE test_table SET column2 = 2; UPDATE test_table SET column2 = 2;
<waiting ...> <waiting ...>
step s1-insert: step s1-insert:
UPDATE test_table SET column2 = 1; UPDATE test_table SET column2 = 1;
step s1-commit: step s1-commit:
COMMIT; COMMIT;
step s2-insert: <... completed> step s2-insert: <... completed>
step s2-commit: step s2-commit:
COMMIT; COMMIT;
starting permutation: s1-grant s1-begin s2-begin s1-truncate s2-truncate s1-commit s2-commit starting permutation: s1-grant s1-begin s2-begin s1-truncate s2-truncate s1-commit s2-commit
step s1-grant: step s1-grant:
SET ROLE test_user_1; SET ROLE test_user_1;
SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2'); SELECT bool_and(success) FROM run_command_on_placements('test_table', 'GRANT ALL ON TABLE %s TO test_user_2');
GRANT ALL ON test_table TO test_user_2; GRANT ALL ON test_table TO test_user_2;
s1: WARNING: not propagating GRANT command to worker nodes
bool_and bool_and
t t
step s1-begin: step s1-begin:
BEGIN; BEGIN;
SET ROLE test_user_1; SET ROLE test_user_1;
step s2-begin: step s2-begin:
BEGIN; BEGIN;
SET ROLE test_user_2; SET ROLE test_user_2;
step s1-truncate: step s1-truncate:
TRUNCATE test_table; TRUNCATE test_table;
step s2-truncate: step s2-truncate:
TRUNCATE test_table; TRUNCATE test_table;
<waiting ...> <waiting ...>
step s1-commit: step s1-commit:
COMMIT; COMMIT;
step s2-truncate: <... completed> step s2-truncate: <... completed>
step s2-commit: step s2-commit:
COMMIT; COMMIT;