-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent IdleInTransactionSessionTimeout #28
Comments
My guess is that there is probably a PostgreSQL setting at the database or connection level that is limiting how long a connection can remain open. And, that limit is lower than the lock expiration time you are setting. Can you do some additional research and confirm or refute that guess? |
Thanks for the quick response. The database's
I don't understand this; I don't know how to set a lock expiration time. I do use the default Lock acquire timeout, -1. |
Sorry, I was actually thinking of the aquire timeout, which probably isn't affected here. The Is it possible that sometimes the code that is being protected by the lock is pausing/sleeping/waiting for longer than one day? I don't think I have any obvious answers for you. And I don't actually know the internals of postgresql that well or how the Perhaps PALs should be setting |
@gavinmh I realize this thread is pretty old but I'm trying to track down the same problem now. A few things:
|
1 similar comment
@gavinmh I realize this thread is pretty old but I'm trying to track down the same problem now. A few things:
|
Thanks for this useful package. Intermittently, my applications encounter the following exception:
Are connections being left in the "idle in transaction" state? Can these transactions be committed or rolled back?
The text was updated successfully, but these errors were encountered: