[
https://issues.apache.org/jira/browse/AMBARI-19259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15765555#comment-15765555
]
Hudson commented on AMBARI-19259:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #6269 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/6269/])
AMBARI-19259 - When Updating An Alert Group a (jhurley:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1584984e8836f6951794b3ac0309494cc9acb234])
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertGroupEntity.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDispatchDAOTest.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java
> When Updating An Alert Group a ConcurrentModificationException is Thrown
> ------------------------------------------------------------------------
>
> Key: AMBARI-19259
> URL: https://issues.apache.org/jira/browse/AMBARI-19259
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.2.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 2.5.0
>
> Attachments: AMBARI-19259.patch
>
>
> When editing an alert group which has targets via the UI, sometimes the
> following is seen:
> {code}
> 16 Nov 2016 11:09:49,343 WARN [qtp-ambari-client-510524] ServletHandler:563
> - /api/v1/clusters/EHIHADOOP03/alert_groups/155
> java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
> at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
> at
> org.eclipse.persistence.indirection.IndirectSet$1.next(IndirectSet.java:471)
> at
> org.apache.ambari.server.orm.entities.AlertGroupEntity.setAlertTargets(AlertGroupEntity.java:313)
> at
> org.apache.ambari.server.controller.internal.AlertGroupResourceProvider.updateAlertGroups(AlertGroupResourceProvider.java:344)
> at
> org.apache.ambari.server.controller.internal.AlertGroupResourceProvider.access$100(AlertGroupResourceProvider.java:60)
> at
> org.apache.ambari.server.controller.internal.AlertGroupResourceProvider$2.invoke(AlertGroupResourceProvider.java:187)
> at
> org.apache.ambari.server.controller.internal.AlertGroupResourceProvider$2.invoke(AlertGroupResourceProvider.java:184)
> at
> org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:450)
> at
> org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:331)
> {code}
> The in-memory collection is not thread safe.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)