Raise a timeout to 180s, in contrib/test_decoding.
authorNoah Misch <noah@leadboat.com>
Sat, 27 Feb 2021 15:02:56 +0000 (07:02 -0800)
committerNoah Misch <noah@leadboat.com>
Sat, 27 Feb 2021 15:02:56 +0000 (07:02 -0800)
Per buildfarm member hornet.  The test is new in v14, so no back-patch.

contrib/test_decoding/expected/twophase.out
contrib/test_decoding/sql/twophase.sql

index f9f6bedd1cffbed605b81cf0b11f11fa77f6054f..afa35669795c70600d99c8e5a5fda72a65c7f050 100644 (file)
@@ -143,9 +143,8 @@ WHERE locktype = 'relation'
  test_prepared1 | relation | AccessExclusiveLock
 (3 rows)
 
--- The above CLUSTER command shouldn't cause a timeout on 2pc decoding. The
--- call should return within a second.
-SET statement_timeout = '1s';
+-- The above CLUSTER command shouldn't cause a timeout on 2pc decoding.
+SET statement_timeout = '180s';
 SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'two-phase-commit', '1', 'include-xids', '0', 'skip-empty-xacts', '1');
                                    data                                    
 ---------------------------------------------------------------------------
index 894e4f5baf15e74c677a20d4528642fd58c0821f..dacedfe1814e4df6a3d87f114e2bf5254b03cf5c 100644 (file)
@@ -68,9 +68,8 @@ SELECT 'test_prepared1' AS relation, locktype, mode
 FROM pg_locks
 WHERE locktype = 'relation'
   AND relation = 'test_prepared1'::regclass;
--- The above CLUSTER command shouldn't cause a timeout on 2pc decoding. The
--- call should return within a second.
-SET statement_timeout = '1s';
+-- The above CLUSTER command shouldn't cause a timeout on 2pc decoding.
+SET statement_timeout = '180s';
 SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'two-phase-commit', '1', 'include-xids', '0', 'skip-empty-xacts', '1');
 RESET statement_timeout;
 COMMIT PREPARED 'test_prepared_lock';