Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection reference pointing non-existing index creates an exception #908

Open
sylvaingaudan opened this issue Aug 22, 2023 · 0 comments · May be fixed by #1005
Open

Collection reference pointing non-existing index creates an exception #908

sylvaingaudan opened this issue Aug 22, 2023 · 0 comments · May be fixed by #1005
Assignees
Labels
type:bug Something isn't working
Milestone

Comments

@sylvaingaudan
Copy link
Member

Collection reference pointing non-existing index creates an exception, while this is a case that should be covered:

  • the index exists : the collection reference is provided
  • the index does not exists : the collection reference is not provided
    The entire exception stack trace should not be logged, a warning should indicate that the index is not found

https://github.com/gisaia/ARLAS-server/blob/develop/arlas-core/src/main/java/io/arlas/server/core/impl/elastic/services/ElasticCollectionReferenceService.java

WARN [2023-08-22 14:17:21,159] io.arlas.server.core.impl.elastic.utils.ElasticClient: Exception while communicating with ES: [es/indices.get_mapping] failed: [index_not_found_exception] no such index [ml_meteo_us] ! co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/indices.get_mapping] failed: [index_not_found_exception] no such index [ml_meteo_us] ! at co.elastic.clients.transport.rest_client.RestClientTransport.getHighLevelResponse(RestClientTransport.java:334) ! at co.elastic.clients.transport.rest_client.RestClientTransport.performRequest(RestClientTransport.java:154) ! at co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient.getMapping(ElasticsearchIndicesClient.java:1092) ! at co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient.getMapping(ElasticsearchIndicesClient.java:1108) ! at io.arlas.server.core.impl.elastic.utils.ElasticClient.getMappings(ElasticClient.java:170) ! at io.arlas.server.core.impl.elastic.services.ElasticCollectionReferenceService.getMappingFromDao(ElasticCollectionReferenceService.java:86) ! at io.arlas.server.core.services.CollectionReferenceService.getMapping(CollectionReferenceService.java:92) ! at io.arlas.server.core.impl.elastic.services.ElasticCollectionReferenceService.lambda$getAllCollectionReferences$6(ElasticCollectionReferenceService.java:137) ! at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178) ! at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ! at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ! at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ! at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ! at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ! at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ! at io.arlas.server.core.impl.elastic.services.ElasticCollectionReferenceService.getAllCollectionReferences(ElasticCollectionReferenceService.java:141) ! at io.arlas.server.rest.explore.describe.DescribeRESTService.list(DescribeRESTService.java:82) ! at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ! at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ! at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ! at java.base/java.lang.reflect.Method.invoke(Method.java:568) ! at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) ! at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:134) ! at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:177) ! at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) ! at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:81) ! at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478) ! at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400) ! at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81) ! at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:256) ! at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) ! at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) ! at org.glassfish.jersey.internal.Errors.process(Errors.java:292) ! at org.glassfish.jersey.internal.Errors.process(Errors.java:274) ! at org.glassfish.jersey.internal.Errors.process(Errors.java:244) ! at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) ! at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235) ! at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:684) ! at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394) ! at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346) ! at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:358) ! at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:311) ! at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205) ! at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ! at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) ! at io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:35) ! at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) ! at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) ! at io.dropwizard.jersey.filter.AllowedMethodsFilter.handle(AllowedMethodsFilter.java:47) ! at io.dropwizard.jersey.filter.AllowedMethodsFilter.doFilter(AllowedMethodsFilter.java:41) ! at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) ! at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) ! at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:319) ! at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:273) ! at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) ! at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) ! at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552) ! at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ! at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ! at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ! at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) ! at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ! at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ! at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ! at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:315) ! at io.dropwizard.jetty.ContextRoutingHandler.handle(ContextRoutingHandler.java:38) ! at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772) ! at io.dropwizard.jetty.ZipExceptionHandlingGzipHandler.handle(ZipExceptionHandlingGzipHandler.java:26) ! at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:54) ! at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:181) ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ! at org.eclipse.jetty.server.Server.handle(Server.java:516) ! at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ! at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ! at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) ! at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) ! at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ! at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ! at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) ! at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) ! at java.base/java.lang.Thread.run(Thread.java:833)

@sylvaingaudan sylvaingaudan added the type:bug Something isn't working label Aug 22, 2023
@MohamedHamouGisaia MohamedHamouGisaia added this to the 27.0.0 milestone Sep 25, 2024
@MohamedHamouGisaia MohamedHamouGisaia modified the milestones: 27.0.0, 27.1.0 Jan 17, 2025
@MohamedHamouGisaia MohamedHamouGisaia removed the type:bug Something isn't working label Jan 31, 2025
@mbarbet mbarbet self-assigned this Feb 26, 2025
@mbarbet mbarbet linked a pull request Feb 26, 2025 that will close this issue
@MohamedHamouGisaia MohamedHamouGisaia added the type:bug Something isn't working label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants