记录一次Es的报错处理,在测试环境ES的执行没有任何问题,但是到了线上环境,报了如下错误:
ES的通过的RestClient的访问方式的,在网上通过 java.lang.RuntimeException: error while performing request 查询,找到了
https://blog.csdn.net/wangweislk/article/details/78839384 但是他的错误是因为超时引起的,和我的报错不同,我这边是因为
org.apache.http.HttpException: Out of sequence response
后面同事抓包后,发现报了很多401的错误,怀疑是公司slb的问题,后面直接走ip就没问题了,问题持续观察中……….
当使用http的方式去调用执行,一直会报错,现在把批量执行的条数缩短,就没有再报出相关的问题。
java.lang.RuntimeException: error while performing request at org.elasticsearch.client.RestClient$SyncResponseListener.get(RestClient.java:636) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:212) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:185) at com.ctrip.ttd.offlinesearch.service.service.impl.EsServiceImpl.execute(EsServiceImpl.java:56) at com.ctrip.ttd.offlinesearch.service.proxy.impl.OptionSearchProxyImpl.createOptionIndex(OptionSearchProxyImpl.java:66) at com.ctrip.ttd.offlinesearch.service.service.impl.ImportOptionServiceImpl.dealOptionInfo(ImportOptionServiceImpl.java:197) at com.ctrip.ttd.offlinesearch.service.service.impl.ImportOptionServiceImpl.dealOption(ImportOptionServiceImpl.java:109) at com.ctrip.ttd.offlinesearch.service.task.SyncOptionEsDataTask.doWork(SyncOptionEsDataTask.java:51) 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:498) at qunar.tc.qschedule.config.spring.TaskBean$1.doWork(TaskBean.java:73) at qunar.tc.qschedule.executor.SchedulerProvider$2.handleScheduleMessage(SchedulerProvider.java:233) at qunar.tc.qschedule.executor.SchedulerProvider$2.onMessage(SchedulerProvider.java:218) at qunar.tc.qschedule.executor.ScheduleMessageHandlerImpl$1.run(ScheduleMessageHandlerImpl.java:84) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.HttpException: Out of sequence response at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.responseReceived(HttpAsyncRequestExecutor.java:267) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:257) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:116) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:164) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:339) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:317) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:590) ... 1 more
今天的文章ES error while performing request分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/29772.html