Skip to content

Commit 42c0ae7

Browse files
authored
Merge pull request #34280 from petrosagg/issue-8447
test: fix busy replication slot test
2 parents 2ee03a6 + 35b68b4 commit 42c0ae7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/pg-cdc-old-syntax/mzcompose.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ def __init__(self, replication_slot_name: str, publication_name: str) -> None:
6363
f"{replication_slot_name}",
6464
"--file",
6565
"-",
66+
# We pass the maximum allowed fsync-interval (~24 days) to prevent
67+
# this process from advancing the slot. The purpose of this reader
68+
# is to just mark the slot as busy, not to move its reserved WAL
69+
# forward.
70+
"--fsync-interval",
71+
"2147483",
6672
"--dbname",
6773
"postgres",
6874
"--host",

test/pg-cdc/mzcompose.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ def __init__(self, replication_slot_name: str, publication_name: str) -> None:
5050
f"{replication_slot_name}",
5151
"--file",
5252
"-",
53+
# We pass the maximum allowed fsync-interval (~24 days) to prevent
54+
# this process from advancing the slot. The purpose of this reader
55+
# is to just mark the slot as busy, not to move its reserved WAL
56+
# forward.
57+
"--fsync-interval",
58+
"2147483",
5359
"--dbname",
5460
"postgres",
5561
"--host",

0 commit comments

Comments
 (0)