atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Wallis <graham_wal...@uk.ibm.com>
Subject Re: [jira] [Created] (ATLAS-2313) Error: Gremlin script execution failed: g.V().has('__typeName', 'Column').limit(25).toList()
Date Mon, 18 Dec 2017 10:44:58 GMT
Hi Peter

It looks to me like the build is using Titan 0.5.4 but the gremlin query 
is using Tinkerpop3 syntax:

org.apache.atlas.exception.AtlasBaseException: Gremlin script execution 
failed: g.V().has('__typeName', 'Column').limit(25).toList()
        at 
org.apache.atlas.repository.graphdb.titan0.Titan0Graph.executeGremlinScript(Titan0Graph.java:342)

Can you please confirm what options/profiles you specified when you built 
Atlas? I suspect it included -DGRAPH-PROVDER=titan0.

When Atlas is built with the titan0 profile (as above), it should only be 
using v2 gremlin - so I suspect you have discovered a bug.

Best regards,
  Graham

Graham Wallis
IBM Analytics Emerging Technology Center
Internet: graham_wallis@uk.ibm.com 
IBM Laboratories, Hursley Park, Hursley, Hampshire SO21 2JN
Tel: +44-1962-815356    Tie: 7-245356




From:   Péter Gergő Barna (JIRA) <jira@apache.org>
To:     dev@atlas.apache.org
Date:   18/12/2017 09:08
Subject:        [jira] [Created] (ATLAS-2313) Error: Gremlin script 
execution failed: g.V().has('__typeName', 'Column').limit(25).toList()



Péter Gergő Barna created ATLAS-2313:
----------------------------------------

             Summary: Error: Gremlin script execution failed: 
g.V().has('__typeName', 'Column').limit(25).toList()
                 Key: ATLAS-2313
                 URL: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_ATLAS-2D2313&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=Li6zJa6pLsu8dGS1GSW1j00glumVmLp0H5HVkn5QyAA&m=7A-yDsL6m6hcE8QeFVBMtZTuh0k8ImvVd2KjsRRNeHI&s=K7K5u6QMR8Bfsyy7LrONERkfsWzm5Q01tCu_uzY7CH4&e=

             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
    Affects Versions: 1.0.0
            Reporter: Péter Gergő Barna


Repro steps:

- build latest atlas form Source
- start Atlas with empty solar and hbase (that is, before starting Atlas, 
delete and recreate Solr collections, delete Hbase database)
- run quicstart.py in order to have some test data
- on the Basic search UI, choose Search by type = "Column" and click 
search
- from the results, in the firts row, click on "Column" 
Then you will get this error on the UI:
Error: Gremlin script execution failed: g.V().has('__typeName', 
'Column').limit(25).toList()

This will be in the logs:


{noformat}
2017-12-18 10:01:12,998 DEBUG - [pool-1-thread-1:] ~ Access is allowed so 
forwarding the request!!! (AtlasAuthorizationFilter:155)
2017-12-18 10:01:12,998 DEBUG - [pool-1-thread-1:] ~ 
/api/atlas/v2/search/dsl?limit=25&offset=0&query=Column&_=1513587272660 
reached end of additional filter chain; proceeding with original chain 
(Filt
erChainProxy$VirtualFilterChain:310)
2017-12-18 10:01:12,998 DEBUG - [pool-1-thread-1:] ~ call filter 
AuditFilter (ServletHandler$CachedChain:1680)
2017-12-18 10:01:12,998 DEBUG - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ call servlet 
jersey-servlet@1d89cbe8==com.sun.jersey.spi.spring.container.servlet.SpringServlet,1,true

(Servl
etHandler$CachedChain:1711)
2017-12-18 10:01:12,999 INFO  - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ GraphTransaction intercept for 
org.apache.atlas.discovery.EntityDiscoveryService.searchUsingDslQuery 
(GraphTr
ansactionAdvisor$1:41)
2017-12-18 10:01:13,071 DEBUG - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ addFrom(typeName=Column) 
(QueryProcessor:82)
2017-12-18 10:01:13,072 DEBUG - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ getText() => 
g.V().has('__typeName', 'Column').limit(25).toList() (QueryProcessor:251)
2017-12-18 10:01:13,072 DEBUG - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ Translated Gremlin Query: 
g.V().has('__typeName', 'Column').limit(25).toList() 
(EntityDiscoveryService:693)
2017-12-18 10:01:13,072 DEBUG - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ Executing DSL query: Column 
(EntityDiscoveryService:132)
2017-12-18 10:01:13,167 DEBUG - [SyncThread:0:] ~ Processing request:: 
sessionid:0x16068d49b730000 type:ping cxid:0xfffffffffffffffe 
zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a (FinalRequestPro
cessor:88)
2017-12-18 10:01:13,167 DEBUG - [SyncThread:0:] ~ 
sessionid:0x16068d49b730000 type:ping cxid:0xfffffffffffffffe 
zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 
(FinalRequestProcessor:160)
2017-12-18 10:01:13,167 DEBUG - [main-SendThread(localhost:9026):] ~ Got 
ping response for sessionid: 0x16068d49b730000 after 0ms 
(ClientCnxn$SendThread:717)
2017-12-18 10:01:13,344 DEBUG - [kafka-network-thread-1-PLAINTEXT-0:] ~ 
Completed request:Name: FetchRequest; Version: 2; CorrelationId: 984; 
ClientId: consumer-1; ReplicaId: -1; MaxWait: 500 ms; MinBy
tes: 1 bytes from connection 
127.0.0.1:9027-127.0.0.1:49773;totalTime:501,requestQueueTime:0,localTime:0,remoteTime:501,responseQueueTime:0,sendTime:0,securityProtocol:PLAINTEXT,principal:User:ANONYMOU
S (RequestChannel$Request:158)
2017-12-18 10:01:13,502 DEBUG - [SyncThread:0:] ~ Processing request:: 
sessionid:0x16068d49b730000 type:ping cxid:0xfffffffffffffffe 
zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a (FinalRequestPro
cessor:88)
2017-12-18 10:01:13,502 DEBUG - [SyncThread:0:] ~ 
sessionid:0x16068d49b730000 type:ping cxid:0xfffffffffffffffe 
zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 
(FinalRequestProcessor:160)
2017-12-18 10:01:13,502 DEBUG - [main-SendThread(localhost:9026):] ~ Got 
ping response for sessionid: 0x16068d49b730000 after 0ms 
(ClientCnxn$SendThread:717)
2017-12-18 10:01:13,836 DEBUG - [SyncThread:0:] ~ Processing request:: 
sessionid:0x16068d49b730000 type:ping cxid:0xfffffffffffffffe 
zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a (FinalRequestPro
cessor:88)
2017-12-18 10:01:13,836 DEBUG - [SyncThread:0:] ~ 
sessionid:0x16068d49b730000 type:ping cxid:0xfffffffffffffffe 
zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 
(FinalRequestProcessor:160)
2017-12-18 10:01:13,836 DEBUG - [main-SendThread(localhost:9026):] ~ Got 
ping response for sessionid: 0x16068d49b730000 after 0ms 
(ClientCnxn$SendThread:717)
2017-12-18 10:01:13,845 DEBUG - [kafka-network-thread-1-PLAINTEXT-0:] ~ 
Completed request:Name: FetchRequest; Version: 2; CorrelationId: 985; 
ClientId: consumer-1; ReplicaId: -1; MaxWait: 500 ms; MinBy
tes: 1 bytes from connection 
127.0.0.1:9027-127.0.0.1:49773;totalTime:501,requestQueueTime:0,localTime:0,remoteTime:500,responseQueueTime:0,sendTime:1,securityProtocol:PLAINTEXT,principal:User:ANONYMOU
S (RequestChannel$Request:158)
2017-12-18 10:01:13,906 DEBUG - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ <== 
AtlasErrorCode.getMessage([g.V().has('__typeName', 
'Column').limit(25).toList()]) (AtlasErrorCode:168)
2017-12-18 10:01:13,906 DEBUG - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ ==> 
AtlasErrorCode.getMessage([g.V().has('__typeName', 
'Column').limit(25).toList()]): Gremlin script executi
on failed: g.V().has('__typeName', 'Column').limit(25).toList() 
(AtlasErrorCode:175)
2017-12-18 10:01:13,906 ERROR - [pool-1-thread-1 - 
79f55cd2-99a1-4804-a612-793ede7cea79:] ~ graph rollback due to exception 
(GraphTransactionInterceptor:71)
org.apache.atlas.exception.AtlasBaseException: Gremlin script execution 
failed: g.V().has('__typeName', 'Column').limit(25).toList()
        at 
org.apache.atlas.repository.graphdb.titan0.Titan0Graph.executeGremlinScript(Titan0Graph.java:342)
        at 
org.apache.atlas.repository.graphdb.titan0.Titan0Graph.executeGremlinScript(Titan0Graph.java:274)
        at 
org.apache.atlas.discovery.EntityDiscoveryService.searchUsingDslQuery(EntityDiscoveryService.java:135)
        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$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
        at 
org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:60)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
        at 
org.apache.atlas.discovery.EntityDiscoveryService$$EnhancerBySpringCGLIB$$269c51a6.searchUsingDslQuery(<generated>)
        at 
org.apache.atlas.web.rest.DiscoveryREST.searchUsingDSL(DiscoveryREST.java:115)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at 
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
        at 
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
        at 
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
        at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at 
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
        at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at 
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
        at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
        at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
        at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
        at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
        at 
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
        at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
        at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)

{noformat}





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)



Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message