cloudstack/plugins
Rohit Yadav b54d19b3b9
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>
2020-06-16 13:30:31 +05:30
..
acl Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
affinity-group-processors Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
alert-handlers Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
api Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
backup server: fix TransactionLegacy DB connection leaks due to DB switching by B&R thread (#4121) 2020-06-16 13:30:31 +05:30
ca/root-ca Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
database Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
dedicated-resources Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
deployment-planners Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
event-bus Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
host-allocators/random Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
hypervisors Merge remote-tracking branch 'origin/4.13' into 4.14 2020-06-12 10:38:30 +05:30
integrations Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
metrics Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
network-elements Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
storage Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
storage-allocators/random Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
user-authenticators Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00
pom.xml Updating pom.xml version numbers for release 4.14.1.0-SNAPSHOT 2020-05-23 09:59:32 +01:00