[ 
https://issues.apache.org/jira/browse/AMBARI-8513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14232122#comment-14232122
 ] 

Hudson commented on AMBARI-8513:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit-docker #361 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit-docker/361/])
AMBARI-8513. "Host doesn't exist in database" exception in log after failed 
agent registration (alexantonenko) (hiveww: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5b6223f6b04b7045c55659fe081657538bba523b)
* ambari-web/app/controllers/wizard/step3_controller.js


> "Host doesn't exist in database" exception in log after failed agent 
> registration
> ---------------------------------------------------------------------------------
>
>                 Key: AMBARI-8513
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8513
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-web
>    Affects Versions: 1.7.0
>            Reporter: Antonenko Alexander
>            Assignee: Antonenko Alexander
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8513.patch
>
>
> I assume that server attempts to send host check actions even to those hosts 
> that did not register (but are expected to do that).
> STR:
> 1. On confirm hosts UI page, add few hosts. Registration of some hosts should 
> fail.
> 2. Check the server log (you will see exceptions).
> I've performed a server reset before facing this issue, but I think issue 
> will reproduce even without doing that.
> A short stack trace fragment (full stack traces are available at attached 
> logs):
> {code}
> 19:03:05,044 ERROR [qtp619288763-24] ActionDBAccessorImpl:241 - Host vm-0.vm 
> doesn't exist in database
> 19:03:05,054 ERROR [qtp619288763-24] AbstractResourceProvider:276 - Caught 
> AmbariException when creating a resource
> org.apache.ambari.server.AmbariException: Host vm-0.vm doesn't exist in 
> database
>         at 
> org.apache.ambari.server.actionmanager.ActionDBAccessorImpl.persistActions(ActionDBAccessorImpl.java:242)
>         at 
> org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:68)
>         at 
> org.apache.ambari.server.actionmanager.ActionManager.sendActions(ActionManager.java:96)
>         at 
> org.apache.ambari.server.actionmanager.ActionManager.sendActions(ActionManager.java:85)
>         at 
> org.apache.ambari.server.controller.AmbariManagementControllerImpl.createAction(AmbariManagementControllerImpl.java:2982)
>         at 
> org.apache.ambari.server.controller.internal.RequestResourceProvider$1.invoke(RequestResourceProvider.java:119)
>         at 
> org.apache.ambari.server.controller.internal.RequestResourceProvider$1.invoke(RequestResourceProvider.java:116)
>         at 
> org.apache.ambari.server.controller.internal.AbstractResourceProvider.createResources(AbstractResourceProvider.java:269)
>         at 
> org.apache.ambari.server.controller.internal.RequestResourceProvider.createResources(RequestResourceProvider.java:116)
>         at 
> org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:274)
>         at 
> org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:75)
>         at 
> org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:36)
>         at 
> org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:72)
>         at 
> org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
>         at 
> org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:103)
>         at 
> org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:72)
>         at 
> org.apache.ambari.server.api.services.RequestService.createRequests(RequestService.java:137)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at 
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>         at 
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
>         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:288)
>         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:1469)
>         at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
>         at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
>         at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
>         at 
> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
>         at 
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
>         at 
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
>         at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)
>         at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>         at 
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
>         at 
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
>         at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>         at 
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
>         at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>         at 
> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
>         at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>         at 
> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
>         at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> {code}



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

Reply via email to