错误: [has_parent] no join field has been configured 导致Full GC?
Elasticsearch | 作者 sanjun | 发布于2019年12月19日 | 阅读数:3517
由于查询操作,填写了错误索引
GET withwinds-redpack-prod-v1.8-koc-20191219/_search
{
"size": 0,
"query": {
"bool": {
"must": [
{
"has_parent": {
"query": {
"bool": {
"filter": [
{
"term": {
"campaignId": {
"value": "wa57845a5c0fe466178262",
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"parent_type": "user",
"score": true,
"ignore_unmapped": false,
"boost": 1
}
}
],
"filter": [
{
"term": {
"level": {
"value": 1,
"boost": 1
}
}
},
{
"script": {
"script": {
"source": "doc['parentId'].value != doc['userId'].value",
"lang": "painless"
},
"boost": 1
}
},
{
"exists": {
"field": "parentId",
"boost": 1
}
},
{
"exists": {
"field": "userId",
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"aggregations": {
"termsAgg": {
"terms": {
"field": "parentId",
"size": 100000,
"min_doc_count": 1,
"shard_min_doc_count": 0,
"show_term_doc_count_error": false,
"order": [
{
"_count": "desc"
},
{
"_key": "asc"
}
]
},
"aggregations": {
"uv": {
"cardinality": {
"field": "userId"
}
},
"topHits": {
"top_hits": {
"from": 1,
"size": 10,
"version": false,
"explain": true
}
}
}
}
}
}
想了解一下,以上查询,是否会产生Full GC?
3 个回复
匿名用户
赞同来自:
Charele - Cisco4321
赞同来自:
匿名用户
赞同来自:
可以使用命令查看,各节点的各个内存使用情况。
再看看,gc情况,一般发生这种事,有两种原因,
1,需求不合理
2,硬件资源不够。