Re: hash_xlog_split_allocate_page: failed to acquire cleanup lock
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>, Mark Dilger <mark.dilger@enterprisedb.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>,
Thomas Munro <thomas.munro@gmail.com>
Date: 2022-10-31T11:26:56Z
Lists: pgsql-hackers
On Tue, Oct 18, 2022 at 8:25 PM Robert Haas <robertmhaas@gmail.com> wrote: > > On Mon, Oct 17, 2022 at 4:30 PM Andres Freund <andres@anarazel.de> wrote: > > On 2022-10-17 13:34:02 -0400, Robert Haas wrote: > > Maybe just nuking the IsBufferCleanupOK call is best, I don't know. I > honestly doubt that it matters very much what we pick here. > Agreed, I think the important point to decide is what to do for back-branches. We have the next minor release in a few days' time and this is the last release for v10. I see the following options based on the discussion here. a. Use the code change in 0001 from email [1] and a comment change proposed by Robert in email [2] to fix the bug reported. This should be backpatched till v10. Then separately, we can consider committing something like 0002 from email [1] as a HEAD-only patch. b. Use the code change in 0001 from email [1] to fix the bug reported. This should be backpatched till v10. Then separately, we can consider committing something like 0002 from email [1] as a HEAD-only patch. c. Combine 0001 and 0002 from the email [1] and push them in all branches till v10. I prefer going with (a). [1] - https://www.postgresql.org/message-id/CAA4eK1LekwAZU5yf2h%2BW1Ko_c85TZHuNLg6jVPD6KDXrYYFo1g%40mail.gmail.com [2] - https://www.postgresql.org/message-id/CA%2BTgmoYruVb7Nh5TUt47sTyYui2zE8Ke9T3DcHeB1wSkb%3DuSCw%40mail.gmail.com -- With Regards, Amit Kapila.
Commits
-
Fix cleanup lock acquisition in SPLIT_ALLOCATE_PAGE replay.
- e848be60b5cf 16.0 landed
- e49e191815b6 15.2 landed
- 9693f190076e 14.7 landed
- 20c223336301 13.10 landed
- 4dccccb37e0b 12.14 landed
- 1703033f896a 11.19 landed