-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29320/
-----------------------------------------------------------
Review request for Ambari and Nate Cole.
Bugs: AMBARI-8865
https://issues.apache.org/jira/browse/AMBARI-8865
Repository: ambari
Description
-------
Alerts on MySQL do not produce the correct host counts. This is due to
{noformat}
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at
org.apache.ambari.server.orm.dao.AlertsDAO.findCurrentHostCounts(AlertsDAO.java:373)
at
org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:53)
at
org.apache.ambari.server.controller.internal.AlertSummaryPropertyProvider.populateResource(AlertSummaryPropertyProvider.java:133)
at
org.apache.ambari.server.controller.internal.AlertSummaryPropertyProvider.populateResources(AlertSummaryPropertyProvider.java:97)
at
org.apache.ambari.server.controller.internal.ClusterControllerImpl.populateResources(ClusterControllerImpl.java:153)
...
{noformat}
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java
6fac728
Diff: https://reviews.apache.org/r/29320/diff/
Testing
-------
Manual verification on MySQL and unit tests run against Derby.
Thanks,
Jonathan Hurley