You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "YIsh (Jira)" <ji...@apache.org> on 2022/08/16 03:41:00 UTC

[jira] [Created] (ATLAS-4656) RelationshipDef name cannot be `schema`

YIsh created ATLAS-4656:
---------------------------

             Summary: RelationshipDef name cannot be `schema`
                 Key: ATLAS-4656
                 URL: https://issues.apache.org/jira/browse/ATLAS-4656
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
    Affects Versions: 2.2.0
            Reporter: YIsh
         Attachments: image-2022-08-16-11-39-08-533.png

!image-2022-08-16-11-39-08-533.png!


b"}},"proxy":false},"-901430854781202":{"typeName":"postgres_storage_desc","attributes":{"qualifiedName":"sample.abc155688.xte15566688@primary_storage","storedAsSubDirectories":false,"location":null,"compressed":false,"inputFormat":null,"parameters":{},"outputFormat":null,"numBuckets":-1},"guid":"-901430854781202","isIncomplete":false,"provenanceType":0,"version":0,"relationshipAttributes":{"table":{"guid":"-901430854781201","typeName":"postgres_table","uniqueAttributes":{"qualifiedName":"sample.abc155688.xte15566688@primary"},"relationshipType":"postgres_table_storage_desc"}},"proxy":false},"-901430854781203":{"typeName":"postgres_column","attributes":{"owner":"postgres","qualifiedName":"sample.abc155688.xte15566688.id@primary","name":"id","comment":null,"position":0,"type":"integer"},"guid":"-901430854781203","isIncomplete":false,"provenanceType":0,"version":0,"relationshipAttributes":{"table":{"guid":"-901430854781201","typeName":"postgres_table","uniqueAttributes":{"qualifiedName":"sample.abc155688.xte15566688@primary"},"relationshipType":"postgres_table_columns"}},"proxy":false}},"entities":[{"typeName":"postgres_table","attributes":{"owner":"postgres","temporary":false,"createTime":1660552801847,"qualifiedName":"sample.abc155688.xte15566688@primary","name":"xte15566688","comment":null,"parameters":{}},"guid":"-901430854781201","isIncomplete":false,"provenanceType":0,"version":0,"relationshipAttributes":{"schema":{"guid":"-901430854781200","typeName":"postgres_schema","uniqueAttributes":{"qualifiedName":"sample.abc155688@primary"},"relationshipType":"postgres_table_schema"},"sd":{"guid":"-901430854781202","typeName":"postgres_storage_desc","uniqueAttributes":{"qualifiedName":"sample.abc155688.xte15566688@primary_storage"},"relationshipType":"postgres_table_storage_desc"},"columns":[{"guid":"-901430854781203","typeName":"postgres_column","uniqueAttributes":{"qualifiedName":"sample.abc155688.xte15566688.id@primary"},"relationshipType":"postgres_table_columns"}]},"proxy":false},{"typeName":"postgres_table_ddl","attributes":{"serviceType":"postgres","qualifiedName":"sample.abc155688.xte15566688@primary:1660552801851","execTime":1660552801851,"queryText":"create table xte15566688(id integer)","name":"create table xte15566688(id integer)","userName":"postgres"},"guid":"-901430854781204","isIncomplete":false,"provenanceType":0,"version":0,"relationshipAttributes":{"table":{"guid":"-901430854781201","typeName":"postgres_table","uniqueAttributes":{"qualifiedName":"sample.abc155688.xte15566688@primary"},"relationshipType":"postgres_table_ddl_queries"}},"proxy":false}]}}} (NotificationHookConsumer$HookConsumer:802)
org.apache.atlas.exception.AtlasBaseException: Invalid instance creation/updation parameters passed : postgres_table.schema={guid=-901430854781200, typeName=postgres_schema, uniqueAttributes={qualifiedName=sample.abc155688@primary}, relationshipType=postgres_table_schema}: invalid value for type array<objectid>
	at org.apache.atlas.repository.store.graph.v2.AtlasEntityGraphDiscoveryV2.validateAndNormalize(AtlasEntityGraphDiscoveryV2.java:109) ~[atlas-repository-2.2.0.jar:2.2.0]
	at org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2.preCreateOrUpdate(AtlasEntityStoreV2.java:1275) ~[atlas-repository-2.2.0.jar:2.2.0]
	at org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2.createOrUpdate(AtlasEntityStoreV2.java:1145) ~[atlas-repository-2.2.0.jar:2.2.0]
	at org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2.createOrUpdate(AtlasEntityStoreV2.java:366) ~[atlas-repository-2.2.0.jar:2.2.0]
	at org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2$$FastClassBySpringCGLIB$$6861dca9.invoke(<generated>) ~[atlas-repository-2.2.0.jar:2.2.0]
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.29.RELEASE.jar:4.3.29.RELEASE]
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:737) ~[spring-aop-4.3.29.RELEASE.jar:4.3.29.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.29.RELEASE.jar:4.3.29.RELEASE]
	at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:111) ~[atlas-repository-2.2.0.jar:?]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.29.RELEASE.jar:4.3.29.RELEASE]
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:672) ~[spring-aop-4.3.29.RELEASE.jar:4.3.29.RELEASE]
	at org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2$$EnhancerBySpringCGLIB$$80e33ac1.createOrUpdate(<generated>) ~[atlas-repository-2.2.0.jar:2.2.0]
	at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.createOrUpdate(NotificationHookConsumer.java:873) ~[atlas-webapp-2.2.0.jar:?]
	at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.handleMessage(NotificationHookConsumer.java:725) [atlas-webapp-2.2.0.jar:?]
	at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.doWork(NotificationHookConsumer.java:549) [atlas-webapp-2.2.0.jar:?]
	at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:96) [kafka_2.12-2.5.0.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_292]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_292]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_292]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_292]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)