-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
Summary
Closes elastic/kibana#138865
This change contains multiple small fixes: