使用 man ascii 来查看 ASCII 表。

array_index_out_of_bounds_exception

Elasticsearch | 作者 elasticStack | 发布于2020年09月12日 | 阅读数:2863

1.ES版本7.X
2.使用以下DSL对接集群时出现array_index_out_of_bounds_exception问题
3.报错详情如下:
{'error': {'root_cause': [{'type': 'array_index_out_of_bounds_exception', 'reason': '1'}], 'type': 'search_phase_execution_exception', 'reason': 'all shards failed', 'phase': 'query', 'grouped': True, 'failed_shards': [{'shard': 0, 'index': 'qtevent_proc_create_2020.09.12', 'node': 'COGUU1rZQCyfcTqEh7sFYw', 'reason': {'type': 'array_index_out_of_bounds_exception', 'reason': '1'}}], 'caused_by': {'type': 'array_index_out_of_bounds_exception', 'reason': '1', 'caused_by': {'type': 'array_index_out_of_bounds_exception', 'reason': '1'}}}, 'status': 500})
已邀请:

elasticStack - 90后it大数据男

赞同来自:

请问各位大佬有什么排查思路吗

elasticStack - 90后it大数据男

赞同来自:

{
"track_total_hits": "true",
"query": {
"bool": {
"filter": [{
"range": {
"datatime": {
"gt": "1599880360"
}
}
}]
}
},
"aggs": {
"buckets": {
"composite": {
"size": "1000",
"sources": [{
"comid": {
"terms": {
"field": "comid"
}
}
}]
}
}
},
"from": "0",
"size": "0"
}

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

GET kibana_sample_data_ecommerce/_search
{
"track_total_hits": "true",
"query": {
"bool": {
"filter": [{
"range": {
"order_date": {
"gt": "1599880360"
}
}
}]
}
},
"aggs": {
"buckets": {
"composite": {
"size": "1000",
"sources": [{
"comid": {
"terms": {
"field": "customer_gender"
}
}
}]
}
}
},
"size": 0
}
没有问题,核对一下日志吧

pony_maggie - 公众号:犀牛饲养员的技术笔记

赞同来自:

在6.x的某些版本上遇到过,好像是某个版本有这个bug,已经修复了

要回复问题请先登录注册