ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12262) ConcurrentModificationException during add host to config group
Date Sat, 04 Jul 2015 11:31:12 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-12262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613738#comment-14613738
] 

Hudson commented on AMBARI-12262:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #3053 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3053/])
AMBARI-12262 - ConcurrentModificationException during add host to config group (tbeerbower)
(tbeerbower: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d5f7b69fc1b412d3a1b7c69ffa8bd8ee7db7738e)
* ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java


> ConcurrentModificationException during add host to config group
> ---------------------------------------------------------------
>
>                 Key: AMBARI-12262
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12262
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 2.1.0
>
>
> 1. Provision a cluster with the attached blueprint. Ambari will create 2 config groups
for HDFS and YARN besides the default one.
> 2. Install the ambari-agent on a new host and let it register to Ambari
> 3. Add the newly registered host to the cluster (POST /clusters/${getClusterName()}/hosts)
> 4. Add the components from slave_1 host group to the new host
> 5. Try to add the new host to both HDFS:slave_1 and YARN:slave_1 host group
> Stack trace ...
> {code}
> javax.persistence.PersistenceException: java.util.ConcurrentModificationException
> 	at org.eclipse.persistence.internal.jpa.QueryImpl.executeUpdate(QueryImpl.java:308)
> 	at org.apache.ambari.server.orm.dao.DaoUtils.executeUpdate(DaoUtils.java:88)
> 	at org.apache.ambari.server.orm.dao.ConfigGroupConfigMappingDAO.removeAllByGroup(ConfigGroupConfigMappingDAO.java:96)
> 	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:60)
> 	at org.apache.ambari.server.state.configgroup.ConfigGroupImpl.persistConfigMapping(ConfigGroupImpl.java:403)
> ...
> Caused by: java.util.ConcurrentModificationException
> 	at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:734)
> 	at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:825)
> 	at org.eclipse.persistence.internal.sessions.CollectionChangeRecord.mergeRecord(CollectionChangeRecord.java:260)
> 	at org.eclipse.persistence.internal.sessions.ObjectChangeSet.mergeObjectChanges(ObjectChangeSet.java:740)
> 	at org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet.mergeObjectChanges(UnitOfWorkChangeSet.java:492)
> 	at org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet.mergeUnitOfWorkChangeSet(UnitOfWorkChangeSet.java:509)
> 	at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.writeChanges(RepeatableWriteUnitOfWork.java:466)
> 	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:863)
> 	at org.eclipse.persistence.internal.jpa.QueryImpl.performPreQueryFlush(QueryImpl.java:963)
> 	at org.eclipse.persistence.internal.jpa.QueryImpl.executeUpdate(QueryImpl.java:296)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message