You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Suma Shivaprasad (JIRA)" <ji...@apache.org> on 2016/12/06 21:16:58 UTC

[jira] [Updated] (ATLAS-1355) Removal of superType during type updates results in a 500 Internal Server error

     [ https://issues.apache.org/jira/browse/ATLAS-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suma Shivaprasad updated ATLAS-1355:
------------------------------------
    Summary: Removal of superType during type updates results in a 500 Internal Server error  (was: Removal of superType results in a 500 Internal Server error)

> Removal of superType during type updates results in a 500 Internal Server error
> -------------------------------------------------------------------------------
>
>                 Key: ATLAS-1355
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1355
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Suma Shivaprasad
>
> {noformat}
> 2016-12-06 15:19:26,398 INFO  - [main:] ~ Testing going to start for: org.apache.atlas.regression.tests.TypeUpdateResourceTest.removeClassSuperTypeWithNewClassSuperType([]) (TestNGListener:44)
> 2016-12-06 15:19:26,399 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Url: http://ctr-e64-1480733150053-3726-01-000004.hwx.site:21000/api/atlas/types?user.name=hrt_qa (BaseRequest:165)
> 2016-12-06 15:19:26,399 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Method: POST (BaseRequest:166)
> 2016-12-06 15:19:26,399 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Header: Name=Content-Type Value=application/json; charset=UTF-8 (BaseRequest:169)
> 2016-12-06 15:19:26,399 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Header: Name=Authorization Value=Basic YWRtaW46YWRtaW4= (BaseRequest:169)
> 2016-12-06 15:19:26,560 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Status: HTTP/1.1 201 Created (BaseRequest:196)
> 2016-12-06 15:19:26,560 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Date Value=Tue, 06 Dec 2016 15:19:26 GMT (BaseRequest:198)
> 2016-12-06 15:19:26,560 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Set-Cookie Value=ATLASSESSIONID=1cmr75ljl1zrs1d23ibpkhme4a;Path=/;HttpOnly (BaseRequest:198)
> 2016-12-06 15:19:26,562 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Expires Value=Thu, 01 Jan 1970 00:00:00 GMT (BaseRequest:198)
> 2016-12-06 15:19:26,562 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Content-Type Value=application/json; charset=UTF-8 (BaseRequest:198)
> 2016-12-06 15:19:26,563 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:198)
> 2016-12-06 15:19:26,563 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:198)
> 2016-12-06 15:19:26,563 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Url: http://ctr-e64-1480733150053-3726-01-000004.hwx.site:21000/api/atlas/types?user.name=hrt_qa (BaseRequest:165)
> 2016-12-06 15:19:26,563 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Method: POST (BaseRequest:166)
> 2016-12-06 15:19:26,564 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Header: Name=Content-Type Value=application/json; charset=UTF-8 (BaseRequest:169)
> 2016-12-06 15:19:26,564 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Header: Name=Authorization Value=Basic YWRtaW46YWRtaW4= (BaseRequest:169)
> 2016-12-06 15:19:26,719 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Status: HTTP/1.1 201 Created (BaseRequest:196)
> 2016-12-06 15:19:26,719 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Date Value=Tue, 06 Dec 2016 15:19:26 GMT (BaseRequest:198)
> 2016-12-06 15:19:26,719 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Set-Cookie Value=ATLASSESSIONID=1qg5zxeqx69kyycz1hfj3nzaj;Path=/;HttpOnly (BaseRequest:198)
> 2016-12-06 15:19:26,720 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Expires Value=Thu, 01 Jan 1970 00:00:00 GMT (BaseRequest:198)
> 2016-12-06 15:19:26,720 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Content-Type Value=application/json; charset=UTF-8 (BaseRequest:198)
> 2016-12-06 15:19:26,720 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:198)
> 2016-12-06 15:19:26,720 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:198)
> 2016-12-06 15:19:26,720 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response is: {"requestId":"pool-2-thread-10 - e8c2d499-ed95-490f-9f1e-2a4ecb20d377","types":[{"name":"className_update_xwlg7mt55p"}]} (TypeUpdateResourceTest:405)
> 2016-12-06 15:19:26,720 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ {
>   "enumTypes":[
>     
>   ],
>   "structTypes":[
>     
>   ],
>   "traitTypes":[
>     
>   ],
>   "classTypes":[
>     {
>       "superTypes":[
>         "superClassxwlg7mt55p"
>       ],
>       "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
>       "typeName":"className_update_xwlg7mt55p",
>       "typeDescription":null,
>       "typeVersion":"1.0",
>       "attributeDefinitions":null
>     }
>   ]
> } (TypeUpdateResourceTest:407)
> 2016-12-06 15:19:26,721 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ {
>   "enumTypes":[
>     
>   ],
>   "structTypes":[
>     
>   ],
>   "traitTypes":[
>     
>   ],
>   "classTypes":[
>     {
>       "superTypes":[
>         
>       ],
>       "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
>       "typeName":"className_update_xwlg7mt55p",
>       "typeDescription":null,
>       "typeVersion":"1.0",
>       "attributeDefinitions":null
>     }
>   ]
> } (TypeUpdateResourceTest:413)
> 2016-12-06 15:19:26,721 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Url: http://ctr-e64-1480733150053-3726-01-000004.hwx.site:21000/api/atlas/types?user.name=hrt_qa (BaseRequest:165)
> 2016-12-06 15:19:26,721 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Method: PUT (BaseRequest:166)
> 2016-12-06 15:19:26,721 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Header: Name=Content-Type Value=application/json; charset=UTF-8 (BaseRequest:169)
> 2016-12-06 15:19:26,722 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Request Header: Name=Authorization Value=Basic YWRtaW46YWRtaW4= (BaseRequest:169)
> 2016-12-06 15:19:26,738 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Status: HTTP/1.1 500 Internal Server Error (BaseRequest:196)
> 2016-12-06 15:19:26,738 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Date Value=Tue, 06 Dec 2016 15:19:26 GMT (BaseRequest:198)
> 2016-12-06 15:19:26,738 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Set-Cookie Value=ATLASSESSIONID=xogw21s7c29b1lvlcy52pjz8t;Path=/;HttpOnly (BaseRequest:198)
> 2016-12-06 15:19:26,739 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Expires Value=Thu, 01 Jan 1970 00:00:00 GMT (BaseRequest:198)
> 2016-12-06 15:19:26,739 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Content-Type Value=application/json; charset=UTF-8 (BaseRequest:198)
> 2016-12-06 15:19:26,739 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:198)
> 2016-12-06 15:19:26,739 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:198)
> 2016-12-06 15:19:26,740 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Response is: {"error":"Failed with javax.ws.rs.WebApplicationException","stackTrace":"javax.ws.rs.WebApplicationException\n\tat org.apache.atlas.web.rest.TypesREST.updateAtlasTypeDefs(TypesREST.java:460)\n\tat org.apache.atlas.web.resources.TypesResource.update(TypesResource.java:151)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\tat com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286)\n\tat com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276)\n\tat com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181)\n\tat com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)\n\tat org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:73)\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)\n\tat com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)\n\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\n\tat org.apache.atlas.web.filters.AtlasAuthorizationFilter.doFilter(AtlasAuthorizationFilter.java:154)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.atlas.web.filters.AtlasCSRFPreventionFilter$ServletFilterHttpInteraction.proceed(AtlasCSRFPreventionFilter.java:232)\n\tat org.apache.atlas.web.filters.AtlasCSRFPreventionFilter.handleHttpInteraction(AtlasCSRFPreventionFilter.java:177)\n\tat org.apache.atlas.web.filters.AtlasCSRFPreventionFilter.doFilter(AtlasCSRFPreventionFilter.java:187)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.atlas.web.filters.AtlasAuthenticationFilter.doFilter(AtlasAuthenticationFilter.java:321)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.atlas.web.filters.AtlasKnoxSSOAuthenticationFilter.doFilter(AtlasKnoxSSOAuthenticationFilter.java:113)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:499)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n\tat java.lang.Thread.run(Thread.java:745)\n"} (TypeUpdateResourceTest:417)
> 2016-12-06 15:19:26,741 INFO  - [main:removeClassSuperTypeWithNewClassSuperType] ~ Testing going to end for: org.apache.atlas.regression.tests.TypeUpdateResourceTest.removeClassSuperTypeWithNewClassSuperType([]) ----- Status: FAIL
> {noformat}



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