Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12329

The time of assembling increases linearly according to the integration name

XMLWordPrintable

      Publishing integration with the same name as the integration which has been already deleted throws an error in the server log and the assembling phase takes longer. After a time, the integration is published. When this happens repeatedly, the time of assembling integration increasing. I noticed that the time is increased about 1minute every time when the user deletes the existing integration and creates a publishes the integration with the same name.

      First cycle

      I created an integration (timer to log) with testIntegration name.
      Time to deploy: ~2min
      After the integration was deployed, I deleted it. On the server log shows the following errors:

      2019-11-26 09:03:10.395 ERROR 1 --- [  XNIO-1 task-3] .s.e.v.h.e.EntityNotFoundExceptionMapper : Entity Not Found Exception null
      javax.persistence.EntityNotFoundException: null
      	at io.syndesis.server.endpoint.v1.handler.integration.IntegrationHandler.getIntegration(IntegrationHandler.java:167) ~[server-endpoint-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.endpoint.v1.handler.integration.IntegrationHandler.get(IntegrationHandler.java:138) ~[server-endpoint-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at sun.reflect.GeneratedMethodAccessor507.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_201]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_201]
      	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:509) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:399) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:363) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:365) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:337) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:310) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:443) [resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:233) [resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:139) [resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:142) [resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:219) [resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:227) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) ~[resteasy-jaxrs-3.6.1.Final.jar!/:3.6.1.Final]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) ~[spring-boot-actuator-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:121) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:100) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) ~[spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
      	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) ~[spring-boot-actuator-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
      	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) ~[spring-boot-actuator-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109) ~[spring-web-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.opentracing.contrib.web.servlet.filter.TracingFilter.doFilter(TracingFilter.java:165) ~[opentracing-web-servlet-filter-0.1.0.jar!/:na]
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) ~[undertow-servlet-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:364) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) ~[undertow-core-2.0.21.Final.jar!/:2.0.21.Final]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_201]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_201]
      	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_201]
      

      Anyway, the integration and the pod was gone.

      Second cycle

      After that, I created the integration with the same name again and I publised it. On the server log shows following error:

      2019-11-26 09:08:06.541 ERROR 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: [ERROR] Activation failure
      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://kubernetes.default.svc/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/i-testintegration/instantiatebinary?commit=. Message: builds.build.openshift.io "i-testintegration-1" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=build.openshift.io, kind=builds, name=i-testintegration-1, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=builds.build.openshift.io "i-testintegration-1" already exists, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={}).
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:510) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:449) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:413) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:390) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:258) ~[openshift-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:204) ~[openshift-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:70) ~[openshift-client-4.6.1.jar!/:na]
      	at io.syndesis.server.openshift.OpenShiftServiceImpl.build(OpenShiftServiceImpl.java:91) ~[server-openshift-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler.build(PublishHandler.java:172) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler$BuildStepOncePerformer.perform(PublishHandler.java:283) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler.execute(PublishHandler.java:100) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.StateChangeHandler.execute(StateChangeHandler.java:33) [server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.BaseIntegrationController.lambda$callStateChangeHandler$9(BaseIntegrationController.java:215) [server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_201]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_201]
      	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_201]
      2019-11-26 09:08:06.542  INFO 1 --- [on Controller-0] i.s.s.c.i.BaseIntegrationController      : Integration i-Luaxvx3jp42UbXYlKXxz : Setting status to Pending (Failure executing: POST at: https://kubernetes.default.svc/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/i-testintegration/instantiatebinary?commit=. Message: builds.build.openshift.io "i-testintegration-1" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=build.openshift.io, kind=builds, name=i-testintegration-1, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=builds.build.openshift.io "i-testintegration-1" already exists, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={}).)
      

      However, after a time, the integration was published.
      Time to deploy: ~2min

      Third cycle

      Again, I deleted it, created the integration with the same name and published it.
      On the server log shows the same error twice and phase of assembling increased.

      2019-11-26 09:15:15.989 ERROR 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: [ERROR] Activation failure
      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://kubernetes.default.svc/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/i-testintegration/instantiatebinary?commit=. Message: builds.build.openshift.io "i-testintegration-1" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=build.openshift.io, kind=builds, name=i-testintegration-1, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=builds.build.openshift.io "i-testintegration-1" already exists, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={}).
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:510) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:449) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:413) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:390) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:258) ~[openshift-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:204) ~[openshift-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:70) ~[openshift-client-4.6.1.jar!/:na]
      	at io.syndesis.server.openshift.OpenShiftServiceImpl.build(OpenShiftServiceImpl.java:91) ~[server-openshift-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler.build(PublishHandler.java:172) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler$BuildStepOncePerformer.perform(PublishHandler.java:283) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler.execute(PublishHandler.java:100) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.StateChangeHandler.execute(StateChangeHandler.java:33) [server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.BaseIntegrationController.lambda$callStateChangeHandler$9(BaseIntegrationController.java:215) [server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_201]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_201]
      	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_201]
      2019-11-26 09:15:15.991  INFO 1 --- [on Controller-0] i.s.s.c.i.BaseIntegrationController      : Integration i-LuazZePjp42UbXYlKXzz : Setting status to Pending (Failure executing: POST at: https://kubernetes.default.svc/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/i-testintegration/instantiatebinary?commit=. Message: builds.build.openshift.io "i-testintegration-1" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=build.openshift.io, kind=builds, name=i-testintegration-1, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=builds.build.openshift.io "i-testintegration-1" already exists, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={}).)
      2019-11-26 09:16:01.955  INFO 1 --- [ler Scheduler-1] i.s.s.c.i.BaseIntegrationController      : Checking integrations for their status.
      2019-11-26 09:16:16.016  INFO 1 --- [ler Scheduler-1] i.s.s.c.i.BaseIntegrationController      : Integration i-LuazZePjp42UbXYlKXzz:1 : Desired status "Published" != current status "Unpublished" --> calling status change handler
      2019-11-26 09:16:16.016  INFO 1 --- [on Controller-0] i.s.s.c.i.BaseIntegrationController      : IntegrationDeploymentId i-LuazZePjp42UbXYlKXzz:1 Integration i-LuazZePjp42UbXYlKXzz : Start processing integration: i-LuazZePjp42UbXYlKXzz, version: 1 with handler: PublishHandler
      2019-11-26 09:16:16.029  INFO 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: Build started: false, isRunning: false, Deployment ready: false
      2019-11-26 09:16:16.029  INFO 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: Steps performed so far: {}
      2019-11-26 09:16:16.048  INFO 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: Created project files and starting build
      2019-11-26 09:16:16.136  INFO 1 --- [ool-18-thread-1] i.s.i.p.generator.ProjectGenerator       : Integration [testintegration]: Project files written to output stream
      2019-11-26 09:16:17.171 ERROR 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: [ERROR] Activation failure
      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://kubernetes.default.svc/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/i-testintegration/instantiatebinary?commit=. Message: builds.build.openshift.io "i-testintegration-2" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=build.openshift.io, kind=builds, name=i-testintegration-2, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=builds.build.openshift.io "i-testintegration-2" already exists, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={}).
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:510) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:449) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:413) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:390) ~[kubernetes-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:258) ~[openshift-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:204) ~[openshift-client-4.6.1.jar!/:na]
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:70) ~[openshift-client-4.6.1.jar!/:na]
      	at io.syndesis.server.openshift.OpenShiftServiceImpl.build(OpenShiftServiceImpl.java:91) ~[server-openshift-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler.build(PublishHandler.java:172) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler$BuildStepOncePerformer.perform(PublishHandler.java:283) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.online.PublishHandler.execute(PublishHandler.java:100) ~[server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.StateChangeHandler.execute(StateChangeHandler.java:33) [server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.server.controller.integration.BaseIntegrationController.lambda$callStateChangeHandler$9(BaseIntegrationController.java:215) [server-controller-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_201]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_201]
      	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_201]
      2019-11-26 09:16:17.171  INFO 1 --- [on Controller-0] i.s.s.c.i.BaseIntegrationController      : Integration i-LuazZePjp42UbXYlKXzz : Setting status to Pending (Failure executing: POST at: https://kubernetes.default.svc/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/i-testintegration/instantiatebinary?commit=. Message: builds.build.openshift.io "i-testintegration-2" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=build.openshift.io, kind=builds, name=i-testintegration-2, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=builds.build.openshift.io "i-testintegration-2" already exists, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={}).)
      

      I noticed that the timeout between the exceptions is 1 minute.
      Time to deploy: ~3min

      Fourth cycle

      Again, I deleted it, created the integration with the same name and published it.
      Now, there are three errors.

      ERROR 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: [ERROR] Activation failure ... message=builds.build.openshift.io "i-testintegration-1" already exists ...
      ...
      ERROR 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: [ERROR] Activation failure ... message=builds.build.openshift.io "i-testintegration-2" already exists ...
      ...
      ERROR 1 --- [on Controller-0] i.s.s.c.i.online.PublishHandler          : Integration [testintegration]: [ERROR] Activation failure ... message=builds.build.openshift.io "i-testintegration-3" already exists ...
      ...
      

      Time to deploy: ~4min

      So I noticed that during the assembling, the Syndesis tries to create an integration with name i-<integrationName>-<n> , where n starts from 0. When the integration with the same name existed before, the _n* is increased, the syndesis waits ~1minute and tries to create it again. The time of assembling increases linearly according to how much times the integration with the same name existed in the past.

            zregvart@redhat.com Zoran Regvart
            mkralik@redhat.com Matej Kralik
            Stefan Veres Stefan Veres
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: