cloudstack/framework
Rohit Yadav f7808cfb52 server: fix TransactionLegacy DB connection leaks due to DB switching by B&R thread (#4121)
BackupSync task would switch between databases to update backup usage
metrics in the cloud_usage.usage_backup table. The current framework
and the usage in ManagedContext causes database connection
(LegacyTransaction) leaks. When the thread runs faster, the issue is
easily reproducible and checking via heap dump analysis or using JMX
MBeans. This fixes by moving the task of backup data updation for
usage data to the usage server by publishing usage events instead of
switching between databases in a local thread while in a
ManagedContextRunnable.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit b54d19b3b9)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2020-06-18 14:06:24 +05:30
..
agent-lb Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
ca Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
cluster Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
config Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
db server: fix TransactionLegacy DB connection leaks due to DB switching by B&R thread (#4121) 2020-06-18 14:06:24 +05:30
direct-download Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
events Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
ipc Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
jobs Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
managed-context Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
quota Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
rest Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
security Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
spring Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00
pom.xml Updating pom.xml version numbers for release 4.14.0.0 2020-05-11 15:03:14 +01:00