Hi Xuneng, Thanks for the review and pointing out the possible race. I attached a new v5 patch where I removed the $log_location assignment as you suggested. Also added "Reviewed-by: Xuneng Zhou <[email protected]>" to the commit message.
Thanks, Anthony On Mon, Nov 23, 2026 at 7:40 PM Xuneng Zhou <[email protected]> wrote: > 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. >
v5-0001-Set-1s-WaitLatch-timeout-if-standby-limit-has-exp.patch
Description: Binary data
