-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
-
None
I am deleting the service using the REST api. Is it not cascading this delete to include the policies?
18:28:12,134 ERROR Kubernetes2Apiman mapping Exception. io.apiman.manager.api.rest.contract.exceptions.SystemErrorException: io.apiman.manager.api.core.exceptions.StorageException: Failed to index document default:cdi-cxf:1.0 of type apiPolicies: DocumentAlreadyExistsException[[.apiman_manager][0] [apiPolicies][default:cdi-cxf:1.0]: document already exists] at io.apiman.manager.api.rest.impl.OrganizationResourceImpl.createApi(OrganizationResourceImpl.java:1518) at io.apiman.manager.api.rest.impl.OrganizationResourceImpl$Proxy$_$$_WeldClientProxy.createApi(Unknown Source) at io.fabric8.apiman.rest.Kubernetes2ApimanFilter.syncKubernetesToApiman(Kubernetes2ApimanFilter.java:317) at io.fabric8.apiman.rest.Kubernetes2ApimanFilter$1.load(Kubernetes2ApimanFilter.java:139) at io.fabric8.apiman.rest.Kubernetes2ApimanFilter$1.load(Kubernetes2ApimanFilter.java:137) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201) at com.google.common.cache.LocalCache.get(LocalCache.java:3953) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3957) at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4875) at io.fabric8.apiman.rest.Kubernetes2ApimanFilter.doFilter(Kubernetes2ApimanFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at io.fabric8.apiman.rest.BearerTokenFilter.doFilter(BearerTokenFilter.java:113) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at io.fabric8.apiman.rest.BootstrapFilter.doFilter(BootstrapFilter.java:259) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at io.apiman.common.servlet.DisableCachingFilter.doFilter(DisableCachingFilter.java:59) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at io.apiman.common.servlet.ApimanCorsFilter.doFilter(ApimanCorsFilter.java:71) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at io.apiman.common.servlet.LocaleFilter.doFilter(LocaleFilter.java:61) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:497) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745) Caused by: io.apiman.manager.api.core.exceptions.StorageException: Failed to index document default:cdi-cxf:1.0 of type apiPolicies: DocumentAlreadyExistsException[[.apiman_manager][0] [apiPolicies][default:cdi-cxf:1.0]: document already exists] at io.apiman.manager.api.es.EsStorage.indexEntity(EsStorage.java:2070) at io.apiman.manager.api.es.EsStorage.indexEntity(EsStorage.java:2051) at io.apiman.manager.api.es.EsStorage.createApiVersion(EsStorage.java:275) 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:497) at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100) at io.apiman.manager.api.core.IStorage$1923703566$Proxy$_$$_WeldClientProxy.createApiVersion(Unknown Source) at io.apiman.manager.api.rest.impl.OrganizationResourceImpl.createApiVersionInternal(OrganizationResourceImpl.java:1788) at io.apiman.manager.api.rest.impl.OrganizationResourceImpl.createApi(OrganizationResourceImpl.java:1508) ... 39 more