| From: | Xuneng Zhou <xunengzhou(at)gmail(dot)com> |
|---|---|
| To: | Anthony Hsu <erwaman(at)gmail(dot)com> |
| Cc: | João Rito <joaovictor(dot)rito(at)gmail(dot)com>, shihao zhong <zhong950419(at)gmail(dot)com>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Dmytro Astapov <dastapov(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
| Subject: | Re: Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin |
| Date: | 2026-11-24 03:40:32 |
| Message-ID: | CABPTF7W6mjcVr-Zmey8v0AMDCxBHroT_GL+WF=f2itNr=iY8MA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Anthony,
v4 seems good to me.
Just one minor comment for the test:
+$log_location = -s $node_standby->logfile;
+
+# Kill the ClientWrite client so its backend drops its buffer pin, leaving
+# only the second session's pin behind.
I think we could drop the log_location assignment after the fetch in here.
There could be a race where session 2 logs its conflict before the test
reads the file size, so later check conlict log fails unexpectly.
--
Regards,
Xuneng Zhou
HighGo Software Co., Ltd.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-11-24 03:52:33 | Re: Injection point: fix race condition between attach and cleanup |
| Previous Message | Henson Choi | 2026-11-24 03:39:41 | Re: [PATCH] Consider window functions when reordering GROUP BY items |