Re: Non-reproducible AIO failure
Nico Williams <nico@cryptonector.com>
From: Nico Williams <nico@cryptonector.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Konstantin Knizhnik <knizhnik@garret.ru>, pgsql-hackers@lists.postgresql.org
Date: 2025-06-07T04:28:12Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
aio: Stop using enum bitfields due to bad code generation
- ce161b194e84 18.0 landed
- 5865150b6d53 19 (unreleased) landed
-
amcheck: Fix posting tree checks in gin_index_check()
- 0cf205e122ae 18.0 cited
-
aio: Add missing memory barrier when waiting for IO handle
- e9a3615a5224 18.0 landed
On Fri, Jun 06, 2025 at 03:37:45PM -0400, Andres Freund wrote: > On 2025-06-06 15:21:13 -0400, Tom Lane wrote: > > So it's our code that is busted. No doubt, what is happening is > > that process A is fetching two fields, modifying one of them, > > and storing the word back (with the observed value of the other > > field) concurrently with some other process trying to update > > the other field. So the other process's update is lost. > > There shouldn't be any concurrent accesses here, so I don't really see > how the above would explain the problem (the IO can only ever be > modified by one backend, initially the "owning backend", then, when > submitted, by the IO worker, and then again by the backend). No concurrent accesses, not from threads anyways, but not even from kernel subsystems nor from signal handlers?