Re: Race condition in replication slot usage introduced by commit f41d846

2025-02-27 Thread Amit Kapila
On Wed, Feb 26, 2025 at 7:18 PM Amit Kapila wrote: > > On Wed, Feb 26, 2025 at 5:40 PM Nisha Moond wrote: > > > > Attached the patch v1 fixing this issue. > > > > Issue reported by: Hou Zhijie. > > > > Thanks for the report and patch. I'll look into it. > Pushed the patch with a slightly differe

Re: Race condition in replication slot usage introduced by commit f41d846

2025-02-26 Thread Amit Kapila
On Wed, Feb 26, 2025 at 5:40 PM Nisha Moond wrote: > > Attached the patch v1 fixing this issue. > > Issue reported by: Hou Zhijie. > Thanks for the report and patch. I'll look into it. -- With Regards, Amit Kapila.

Race condition in replication slot usage introduced by commit f41d846

2025-02-26 Thread Nisha Moond
Hi, Commit f41d846 [1] introduced a race condition that allows a process to acquire and continue using an invalidated replication slot, leading to unexpected behavior. Example Scenario: Suppose there is an orphaned logical slot that will be invalidated on the next checkpoint. Consider the followi