ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-4402) Delete Config Group Host mapping broken due to error introduced by perf patch
Date Thu, 23 Jan 2014 17:58:37 GMT
Siddharth Wagle created AMBARI-4402:
---------------------------------------

             Summary: Delete Config Group Host mapping broken due to error introduced by perf
patch
                 Key: AMBARI-4402
                 URL: https://issues.apache.org/jira/browse/AMBARI-4402
             Project: Ambari
          Issue Type: Bug
          Components: controller
    Affects Versions: 1.5.0
            Reporter: Siddharth Wagle
            Assignee: Siddharth Wagle
             Fix For: 1.5.0


*Unit test*: org.apache.ambari.server.state.ConfigGroupTest#testRemoveHost
This unit test is not a part of M15 branch, it was added later. (trunk)

Exception thrown during ConfigGroupImpl.removeHost()

{code}
2014-01-06 17:46:35,989 ERROR [main] configgroup.ConfigGroupImpl (ConfigGroupImpl.java:removeHost(274))
- Failed to delete config group host mapping, clusterName = foo, id = 1, hostname = h1
java.lang.IllegalArgumentException: Object: org.apache.ambari.server.orm.cache.ConfigGroupHostMappingImpl@cc34948d
is not a known entity type.
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.performRemove(UnitOfWorkImpl.java:3538)
	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.remove(EntityManagerImpl.java:518)
	at org.apache.ambari.server.orm.dao.ConfigGroupHostMappingDAO.removeByPK(ConfigGroupHostMappingDAO.java:250)
	at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:58)
	at org.apache.ambari.server.state.configgroup.ConfigGroupImpl.removeHost(ConfigGroupImpl.java:272)
	at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
	at org.apache.ambari.server.state.cluster.ClustersImpl.deleteConfigGroupHostMapping(ClustersImpl.java:640)
	at org.apache.ambari.server.state.cluster.ClustersImpl.unmapHostFromCluster(ClustersImpl.java:615)
	at org.apache.ambari.server.state.ConfigGroupTest.testRemoveHost(ConfigGroupTest.java:203)
{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message