Non working timeout detection in logical worker
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Jehan Guillaume De Rorthais ioguix <ioguix@free.fr>
Date: 2019-10-17T18:00:15Z
Lists: pgsql-hackers
Attachments
- fix_logical_worker_timeout-v1.diff (application/octet-stream) patch v1
Hello, Jehan-Guillaume (in Cc) reported me today a problem with logical replication, where in case of network issue the walsender is correctly terminating at the given wal_sender_timeout but the logical worker kept waiting indefinitely. The issue is apparently a simple thinko, the timestamp of the last received activity being unconditionally set at the beginning of the main processing loop, making any reasonable timeout setting ineffective. Trivial patch to fix the problem attached.
Commits
-
Fix timeout handling in logical replication worker
- 47698b4b62e3 10.11 landed
- feed5ee4753a 11.6 landed
- 04510dbe34b9 12.1 landed
- 3f60f690fac1 13.0 landed