mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4281 : Usage - exception was hiding the db error. Make the usage job fail incase of any DB insert exceptions
This commit is contained in:
parent
b172eb21c4
commit
b4464d88d3
@ -129,11 +129,8 @@ public static final Logger s_logger = Logger.getLogger(NetworkUsageParser.class.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
m_usageDao.saveUsageRecords(usageRecords);
|
m_usageDao.saveUsageRecords(usageRecords);
|
||||||
} catch (Exception ex) {
|
|
||||||
s_logger.error("Exception in usage manager", ex);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -157,11 +157,7 @@ public static final Logger s_logger = Logger.getLogger(VmDiskUsageParser.class.g
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
m_usageDao.saveUsageRecords(usageRecords);
|
||||||
m_usageDao.saveUsageRecords(usageRecords);
|
|
||||||
} catch (Exception ex) {
|
|
||||||
s_logger.error("Exception in usage manager", ex);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user