Commit 044bc56
fix: add statement_timeout and lock_timeout to mirror_primary_tables to prevent FDW zombie locks
Add SET LOCAL timeouts to refresh_tables() to prevent FDW zombie
connections from holding ACCESS EXCLUSIVE locks on mirrored tables
indefinitely. This fixes a v0.42.0 regression where stuck FDW queries
during mirror_primary_tables() cascade into full system lock.
- statement_timeout=60s: kills stuck FDW queries (normally <5s)
- lock_timeout=10s: prevents TRUNCATE stampede from multiple nodes
Both are SET LOCAL (transaction-scoped), zero impact on other queries.1 parent 37acb91 commit 044bc56
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2218 | 2218 | | |
2219 | 2219 | | |
2220 | 2220 | | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
2221 | 2229 | | |
2222 | 2230 | | |
2223 | 2231 | | |
| |||
0 commit comments