Re: BUG #17072: Assert for clogGroupNext failed due to a race condition in TransactionGroupUpdateXidStatus()

Alexander Law <exclusion@gmail.com>

From: Alexander Lakhin <exclusion@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-06-27T19:00:00Z
Lists: pgsql-bugs
Hello Amit,
26.06.2021 12:57, Amit Kapila wrote:
>
>>> I think this should be reproducible on all branches from HEAD till
>>> v11. Have you tried in any other branch? I'll also try to reproduce
>>> it.
>> I've reproduced it on REL_11_STABLE, REL_12_STABLE, REL_13_STABLE, and
>> master.
>>
> Please see if you can verify whether the attached fixes it in all the
> branches?
Yes, the attached patch fixes the issue in all the branches.
Thanks for the fix!

Best regards,
Alexander



Commits

  1. Fix race condition in TransactionGroupUpdateXidStatus().