[elasticsearch] fix pending_tasks mappings - #4255
Conversation
🚀 Benchmarks reportPackage
|
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
audit |
1394.7 | 1039.5 | -355.2 (-25.47%) | 💔 |
gc |
8000 | 6250 | -1750 (-21.88%) | 💔 |
To see the full report comment with /test benchmark fullreport
🌐 Coverage report
|
There was a problem hiding this comment.
LGTM! I tried, but I didn't manage to create pending_tasks to test the mapping fix. @matschaffer , do you know how?
|
There's probably a better approach but I went the brute force way:
|
|
If I grep kibana source for |
|
Thanks @klacabane. I managed to have some pending tasks here. @matschaffer, indeed there is a number of Currently, without Kevin's change,
"elasticsearch": {
"properties": {
"cluster": {
"properties": {
"id": {
"type": "keyword",
"ignore_above": 1024
},
"name": {
"type": "keyword",
"ignore_above": 1024
},
"pending_task": { <--- current mapping
"properties": {
"insert_order": {
"type": "long"
},
"priority": {
"type": "keyword",
"ignore_above": 1024
},
"source": {
"type": "keyword",
"ignore_above": 1024
},
"time_in_queue": {
"properties": {
"ms": {
"type": "long"
}
}
}
}
},
"state": {
"properties": {
"id": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
},
"node": {
"properties": {
"id": {
"type": "keyword",
"ignore_above": 1024
},
"master": {
"type": "boolean"
},
"mlockall": {
"type": "boolean"
},
"name": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
}And this is what is actually in the doc. Looks like the mapping is wrong.
"elasticsearch": {
"cluster": {
"name": "elasticsearch",
"id": "CvwadJe-QPyh9S7YKTNLAQ"
},
"pending_tasks": {
"time_in_queue.ms": 150,
"source": "create-index [test_e+cu4r+1], cause [api]",
"priority": "URGENT",
"insert_order": 1336
}
} |
|
Looks like the mappings are correct for version up to 6.4 (see https://github.com/elastic/beats/blob/6.4/metricbeat/module/elasticsearch/pending_tasks/pending_tasks.go#L90), starting 6.5 we write to |
|
Gotcha. Let's at least get an issue open to fix the other mappings (internal/mb, maybe fixture data?). |
|
I've opened this one for mb: elastic/beats#33211 and es mapping has already been updated elastic/elasticsearch#90203. Fixture data would be nice too. |
* update logo * update readme * fix pending_tasks mappings * generate readme * move elastic version to .env file
Summary
Closes elastic/kibana#138865
This change contains multiple small fixes: