Re: Assertion failure with barriers in parallel hash join
David Geier <geidav.pg@gmail.com>
From: David Geier <geidav.pg@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Melanie Plageman <melanieplageman@gmail.com>
Date: 2022-11-17T07:01:27Z
Lists: pgsql-hackers
Hi Thomas, Can we make progress with this patch in the current commit fest, or discuss what is still missing to bring this in? Thanks! -- David Geier (ServiceNow) On 6/6/22 17:01, David Geier wrote: > Hi Thomas, > > Correct. We're running with disabled parallel leader participation and > we have to do so, because another custom plan node we built relies on > that. > That would be great. Anything else I can help with to get this patch in? > > Thanks! > > -- > David > (ServiceNow) > > On Fri, 3 Jun 2022 at 00:06, Thomas Munro <thomas.munro@gmail.com> wrote: > > On Thu, Jun 2, 2022 at 9:31 PM David Geier <geidav.pg@gmail.com> > wrote: > > We recently encountered the same bug in the field. Oleksii > Kozlov managed to come up with reproduction steps, which reliably > trigger it. Interestingly, the bug does not only manifest as > failing assertion, but also as segmentation fault; in builds with > disabled and with enabled (!) assertions. So it can crash > production environments. We applied the proposed patch v3 from > Melanie to the REL_14_3 branch and can confirm that with the patch > neither the assertion nor the segmentation fault still occur. > > Thanks for the report, testing, and for creating the CF entry. > > I assume you are using parallel_leader_participation=off, and the > reason we haven't heard more about this is because few people do that. > By coincidence I was just about to restart a bunch of hash join > projects and have been paging the topic area back into my brain, so > I'll start with another round of testing/analysis of this bug/patch > next week. >
Commits
-
Fix race in parallel hash join batch cleanup, take II.
- ef16d27245f6 11.20 landed
- 44d44aa9712f 12.15 landed
- 6e94d62e3f04 13.11 landed
- 1b9e42e82ae6 14.8 landed
- c03c6e8cf6a9 15.3 landed
- 8d578b9b2e37 16.0 landed
-
Revert "Fix race in Parallel Hash Join batch cleanup."
- 7f7f25f15edb 14.0 landed
- 492f6e21038a 11.12 landed
- b9ed85698f3e 12.7 landed
- 69739ec317ae 13.3 landed
-
Fix race in Parallel Hash Join batch cleanup.
- 0129c56fbe5c 11.12 landed
- 8fa2478b407e 12.7 landed
- 4e0f0995e923 13.3 landed
- 3b8981b6e1a2 14.0 landed
-
Mop-up for wait event naming issues.
- 3048898e73c7 13.0 cited