Replies: 3 comments
-
Could it be related to how the pool is configured? Perhaps that's something you could experiment with. I'd also be curious to see if Postgres is holding onto a lock internally: maybe Tokio is cancelling the task because it's become too slow waiting for Postgres to release a row lock? (Maybe something like this query could be helpful: https://stackoverflow.com/a/72374897/1542038) |
Beta Was this translation helpful? Give feedback.
-
I've removed the shared memory caching in the latest release: this seems to have caused issues with other backends, so while it might be entirely unrelated, I'm also curious if you see this issue on the 0.6.0 series? |
Beta Was this translation helpful? Give feedback.
-
Thanks @maxcountryman, I updated the crate, it seems to work perfectly now! |
Beta Was this translation helpful? Give feedback.
-
When using the
PostgresStore
the session reads seem to hang indefinitely after a few moments. It does not happen with theMemoryStore
.This is what
select * from pg_stat_activity
returns:I believe
tokio
cancels the task for some reason, leaving it hanging on the database side. I'm pretty baffled by why it happens. Any ideas what could I try to debug this issue?Beta Was this translation helpful? Give feedback.
All reactions