Madhan Neethiraj created ATLAS-3058:
---------------------------------------
Summary: Saving of favorite-search fails
Key: ATLAS-3058
URL: https://issues.apache.org/jira/browse/ATLAS-3058
Project: Atlas
Issue Type: Bug
Components: atlas-core
Affects Versions: 1.2.0, 2.0.0
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj
After recent changes in handling of relationship-attributes during entity
create/update (ATLAS-3055), saving of favorite-seacrh fails with the following
error:
{noformat}
2019-02-26 22:59:35,462 ERROR - [pool-2-thread-10 -
05ba0035-4b16-417c-94ed-c2a73c53350a:hrt_qa:POST/api/atlas/v2/search/saved] ~
addSavedSearch(AtlasUserSavedSearch{guid=-18693143454067265,...})
(EntityDiscoveryService:827)
org.apache.atlas.exception.AtlasBaseException: Referenced entity
AtlasObjectId{guid='null', typeName='__AtlasUserProfile',
uniqueAttributes={name:testuser1}} is not found
at
org.apache.atlas.repository.store.graph.v2.UniqAttrBasedEntityResolver.resolveEntityReferences(UniqAttrBasedEntityResolver.java:68)
at
org.apache.atlas.repository.store.graph.v2.AtlasEntityGraphDiscoveryV2.resolveReferences(AtlasEntityGraphDiscoveryV2.java:181)
at
org.apache.atlas.repository.store.graph.v2.AtlasEntityGraphDiscoveryV2.discoverEntities(AtlasEntityGraphDiscoveryV2.java:74)
at
org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2.preCreateOrUpdate(AtlasEntityStoreV2.java:848)
at
org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2.createOrUpdate(AtlasEntityStoreV2.java:715)
at
org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2.createOrUpdate(AtlasEntityStoreV2.java:250)
at
org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2$$FastClassBySpringCGLIB$$6861dca9.invoke(<generated>)
at
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:80)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
at
org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2$$EnhancerBySpringCGLIB$$ad28ea29.createOrUpdate(<generated>)
at
org.apache.atlas.repository.ogm.DataAccess.saveNoLoad(DataAccess.java:73)
at org.apache.atlas.repository.ogm.DataAccess.save(DataAccess.java:56)
at
org.apache.atlas.repository.userprofile.UserProfileService.addSavedSearch(UserProfileService.java:70)
at
org.apache.atlas.discovery.EntityDiscoveryService.addSavedSearch(EntityDiscoveryService.java:825)
at
org.apache.atlas.discovery.EntityDiscoveryService$$FastClassBySpringCGLIB$$1af2cf1f.invoke(<generated>)
at
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:667)
at
org.apache.atlas.discovery.EntityDiscoveryService$$EnhancerBySpringCGLIB$$efb3fb4b.addSavedSearch(<generated>)
at
org.apache.atlas.web.rest.DiscoveryREST.addSavedSearch(DiscoveryREST.java:401)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)