Add extra debug info

debug-ci-issue
Jelte Fennema-Nio 2024-06-14 15:25:41 +02:00
parent 41bd464b03
commit 7b1c35280f
2 changed files with 13 additions and 0 deletions

View File

@ -78,9 +78,19 @@ SELECT format('user=%s host=localhost port=%s password=%s dbname=regression',
\gset
GRANT ALL ON TABLE lineitem, orders, lineitem, customer, nation, part, supplier TO alice, bob;
\c :alice_conninfo
SELECT current_user;
current_user
---------------------------------------------------------------------
alice
(1 row)
SET citus.log_remote_commands TO on;
-- router query (should break because of bad password)
INSERT INTO customer VALUES (12345, 'name', NULL, 5, 'phone', 123.45, 'segment', 'comment');
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
DETAIL: on server alice@localhost:xxxxx connectionId: xxxxxxx
ERROR: connection to the remote node alice@localhost:xxxxx failed with the following error: FATAL: password authentication failed for user "alice"
SET citus.log_remote_commands TO off;
-- fix alice's worker1 password ...
UPDATE pg_dist_authinfo
SET authinfo = ('password=' || :'alice_worker_1_pw')

View File

@ -76,8 +76,11 @@ GRANT ALL ON TABLE lineitem, orders, lineitem, customer, nation, part, supplier
\c :alice_conninfo
SELECT current_user;
SET citus.log_remote_commands TO on;
-- router query (should break because of bad password)
INSERT INTO customer VALUES (12345, 'name', NULL, 5, 'phone', 123.45, 'segment', 'comment');
SET citus.log_remote_commands TO off;
-- fix alice's worker1 password ...
UPDATE pg_dist_authinfo