Re: Non-reproducible AIO failure

Konstantin Knizhnik <knizhnik@garret.ru>

From: Konstantin Knizhnik <knizhnik@garret.ru>
To: Alexander Lakhin <exclusion@gmail.com>, Andres Freund <andres@anarazel.de>
Cc: Nico Williams <nico@cryptonector.com>, Daniel Gustafsson <daniel@yesql.se>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, rmt@lists.postgresql.org, Thomas Munro <thomas.munro@gmail.com>
Date: 2025-08-23T17:32:48Z
Lists: pgsql-hackers
On 20/08/2025 9:00 PM, Alexander Lakhin wrote:
> for i in {1..10}; do np=$((20 + $RANDOM % 10)); echo "iteration $i: 
> $np"; time parallel -j40 --linebuffer --tag  /tmp/repro-AIO-Assert.sh 
> {} ::: `seq $np` || break; sleep $(($RANDOM % 20)); done; echo -e "\007"


Unfortunately I was not able to reproduce the problem on my MacBook M4 
Pro (which should be identical with yours) using your instructions: I 
tried five times but in all cases 10 iterations are completed normally.