一:场景复现
我们A服务在调用B服务(订单服务),进行订单查询的时候,B服务查询ES报错。
二:问题排查
1.报错问题
A服务报错msg:
调用订单服务查询异常,参数= {"jumpType":1,"pageIndex":1,"pageSize":2147483647, "saleOrderCode":["XXXXXXXXXXXXXXXX"],"searchCount":true}, result={"code":"","msg":"Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]","success":false}
B服务(订单服务)报错msg:
Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]|org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed] at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177) at org.elasticsearch.client.RestHi