Closed ItsMeSamey closed 1 month ago
Describe the bug Program crashes due to concurrent map writes fatal.log
To Reproduce I was spamming with create and select quires.
Race detector found races in github.com/jackc/pgx/v5/internal/stmtcache.(*LRUCache).RemoveInvalidated() and more races.log
github.com/jackc/pgx/v5/internal/stmtcache.(*LRUCache).RemoveInvalidated()
Expected behavior expect to able able to concurrently query the database
Actual behavior program crashes
Version
go version go1.23.2 linux/amd64
PostgreSQL 16.4 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 13.3.1 20240522 (Red Hat 13.3.1-1), 64-bit
github.com/jackc/pgx/v5 v5.7.1
Describe the bug Program crashes due to concurrent map writes fatal.log
To Reproduce I was spamming with create and select quires.
Race detector found races in
github.com/jackc/pgx/v5/internal/stmtcache.(*LRUCache).RemoveInvalidated()
and more races.logExpected behavior expect to able able to concurrently query the database
Actual behavior program crashes
Version
go version go1.23.2 linux/amd64
PostgreSQL 16.4 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 13.3.1 20240522 (Red Hat 13.3.1-1), 64-bit
github.com/jackc/pgx/v5 v5.7.1