shwstppr commented on code in PR #11095:
URL: https://github.com/apache/cloudstack/pull/11095#discussion_r2338488825
##########
server/src/main/java/com/cloud/alert/AlertManagerImpl.java:
##########
@@ -290,8 +294,13 @@ protected void recalculateHostCapacities() {
Math.min(CapacityManager.CapacityCalculateWorkers.value(),
hostIds.size())));
for (Long hostId : hostIds) {
futures.put(hostId, executorService.submit(() -> {
- final HostVO host = hostDao.findById(hostId);
- _capacityMgr.updateCapacityForHost(host);
+ Transaction.execute(new TransactionCallbackNoReturn() {
+ @Override
+ public void doInTransactionWithoutResult(TransactionStatus
status) {
+ final HostVO host = hostDao.findById(hostId);
+ _capacityMgr.updateCapacityForHost(host);
Review Comment:
@weizhouapache I'm not seeing this in a few of my test environments. Any
reproduction steps?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]