When create a reflection from a physical data set off of Elasticsearch, I will sometimes get a 404, which causes the reflection to stop refreshing and forces all virtual dataset reflections to fail as well. I have tried making the data set smaller, making 10s of reflections, and nothing quite works. I have to manually enable/disable the reflection, and then it may work the first time. Sometime after that first refresh it will fail.
Dremio version: 4.0.4-20191021053580380-773b665
Elasticsearch version: 5.6.10
Verbose error:
INVALID_DATASET_METADATA ERROR: Failure executing Elastic request get next search result: HTTP 404 Not Found.
Request: http:///_search/scroll
Response Status 404
Response Reason Not Found
Response Body ���Aj�0E�"f�@�d���@B�&�@�� l�](�l�_̟?�?3�R�w��y�:�"�ё�/��P�#2�|�8x�k,4:aͮ~��VZ�A���������|�����1J*�����w))�V79�.�ퟆ4��N��21�j�|v�Z�V f��!���R��x3�����u\jkϳ��6A?|�’��.���
SqlOperatorImpl ELASTICSEARCH_SUB_SCAN
Location 1:0:2
Fragment 1:0
[Error Id: 13a53ee9-052b-4621-94f8-1b9287efa11a on ]
(javax.ws.rs.NotFoundException) HTTP 404 Not Found
org.glassfish.jersey.client.JerseyInvocation.convertToException():1020
org.glassfish.jersey.client.JerseyInvocation.translate():819
org.glassfish.jersey.client.JerseyInvocation.access$700():92
org.glassfish.jersey.client.JerseyInvocation$2.call():701
org.glassfish.jersey.internal.Errors.process():315
org.glassfish.jersey.internal.Errors.process():297
org.glassfish.jersey.internal.Errors.process():228
org.glassfish.jersey.process.internal.RequestScope.runInScope():444
org.glassfish.jersey.client.JerseyInvocation.invoke():697
com.dremio.plugins.elastic.ElasticConnectionPool$ElasticConnection.execute():638
com.dremio.plugins.elastic.execution.ElasticsearchRecordReader.getNextPage():240
com.dremio.plugins.elastic.execution.ElasticsearchRecordReader.next():287
com.dremio.sabot.op.scan.ScanOperator.outputData():231
com.dremio.sabot.driver.SmartOp$SmartProducer.outputData():521
com.dremio.sabot.driver.StraightPipe.pump():56
com.dremio.sabot.driver.Pipeline.doPump():109
com.dremio.sabot.driver.Pipeline.pumpOnce():99
com.dremio.sabot.exec.fragment.FragmentExecutor$DoAsPumper.run():320
com.dremio.sabot.exec.fragment.FragmentExecutor.run():273
com.dremio.sabot.exec.fragment.FragmentExecutor.access$1200():87
com.dremio.sabot.exec.fragment.FragmentExecutor$AsyncTaskImpl.run():658
com.dremio.sabot.task.AsyncTaskWrapper.run():104
com.dremio.sabot.task.slicing.SlicingThread.mainExecutionLoop():226
com.dremio.sabot.task.slicing.SlicingThread.run():156
Request: http:///_search/scroll
Response Status 404
Response Reason Not Found
Response Body ���Aj�0E�"f�@�d���@B�&�@�� l�](�l�_̟?�?3�R�w��y�:�"�ё�/��P�#2�|�8x�k,4:aͮ~��VZ�A���������|�����1J*�����w))�V79�.�ퟆ4��N��21�j�|v�Z�V f��!���R��x3�����u\jkϳ��6A?|�’��.���
SqlOperatorImpl ELASTICSEARCH_SUB_SCAN
Location 1:0:2
Fragment 1:0
org.glassfish.jersey.client.JerseyInvocation(JerseyInvocation.java:1020)
org.glassfish.jersey.client.JerseyInvocation(JerseyInvocation.java:819)
org.glassfish.jersey.client.JerseyInvocation(JerseyInvocation.java:92)
org.glassfish.jersey.client.JerseyInvocation$2(JerseyInvocation.java:701)
org.glassfish.jersey.internal.Errors(Errors.java:315)
org.glassfish.jersey.internal.Errors(Errors.java:297)
org.glassfish.jersey.internal.Errors(Errors.java:228)
org.glassfish.jersey.process.internal.RequestScope(RequestScope.java:444)
org.glassfish.jersey.client.JerseyInvocation(JerseyInvocation.java:697)
com.dremio.plugins.elastic.ElasticConnectionPool$ElasticConnection(ElasticConnectionPool.java:638)
com.dremio.plugins.elastic.execution.ElasticsearchRecordReader(ElasticsearchRecordReader.java:240)
com.dremio.plugins.elastic.execution.ElasticsearchRecordReader(ElasticsearchRecordReader.java:287)
com.dremio.sabot.op.scan.ScanOperator(ScanOperator.java:231)
com.dremio.sabot.driver.SmartOp$SmartProducer(SmartOp.java:521)
com.dremio.sabot.driver.StraightPipe(StraightPipe.java:56)
com.dremio.sabot.driver.Pipeline(Pipeline.java:109)
com.dremio.sabot.driver.Pipeline(Pipeline.java:99)
com.dremio.sabot.exec.fragment.FragmentExecutor$DoAsPumper(FragmentExecutor.java:320)
com.dremio.sabot.exec.fragment.FragmentExecutor(FragmentExecutor.java:273)
com.dremio.sabot.exec.fragment.FragmentExecutor(FragmentExecutor.java:87)
com.dremio.sabot.exec.fragment.FragmentExecutor$AsyncTaskImpl(FragmentExecutor.java:658)
com.dremio.sabot.task.AsyncTaskWrapper(AsyncTaskWrapper.java:104)
com.dremio.sabot.task.slicing.SlicingThread(SlicingThread.java:226)
com.dremio.sabot.task.slicing.SlicingThread(SlicingThread.java:156)