hotfix: Fixed 'idle in transaction' connections when loading entityLog #287
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "connectionHotfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Transactions will block connections in persistence-service.
You can see that when you execute 'SELECT * FROM pg_stat_activity;' in the database. The state of the connection will. be 'idle in transcaction'
Having @Transcation annotations on havily called endpoints will lead to this exception
java.sql.SQLTransientConnectionException: jdbc:postgresql://postgresql:5432/tenantmanager?ApplicationName=persistence-service-multitenantDataSource - Connection is not available, request timed out after 30000ms.
at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:696)
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:181)
That makes the entire system unusable. Please keep that in mind, whenever you add a @Transaction annotation.
assigned to @dominique.eiflaender1
approved this merge request
approved this merge request
mentioned in commit
e4f1a04220