-
Notifications
You must be signed in to change notification settings - Fork 330
operation-type:composite fails when track_total_hits is false #1881
Copy link
Copy link
Closed
Description
We are using a composite operation to benchmark searchable snapshots using async search like below:
{
"operation": {
"operation-type": "composite",
"name": "date_histogram_by_day-90d-hotfrozen",
"iterations": 10,
"requests": [
{
"stream": [
{
"name": "async-search",
"operation-type": "submit-async-search",
"index": "hotfrozenlogs",
"request-params": {
"track_total_hits": "false"
},
"body": {
"size": 0,
"query": {
"bool": {
"filter": [
{
"range": {
"@timestamp": {
"gte": "2024-01-01T00:00:00",
"lt": "2024-04-01T00:00:00"
}
}
},
{
"term": {
"log.file.path": {
"value": "/var/log/messages/salttouch"
}
}
}
]
}
},
"aggs": {
"time": {
"date_histogram": {
"field": "@timestamp",
"calendar_interval": "1d"
}
}
}
}
}
]
},
{
"operation-type": "get-async-search",
"retrieve-results-for": [
"async-search"
]
},
{
"operation-type": "delete-async-search",
"delete-results-for": [
"async-search"
]
}
]
}
}And its failing with:
esrally.exceptions.RallyError: Cannot run task [date_histogram_by_day-90d-hotfrozen]: Cannot execute [user-defined context-manager enabled runner for [composite]]. Provided parameters are: ['operation-type', 'name', 'iterations', 'requests', 'include-in-reporting']. Error: ['total'].
The log shows GetAsyncSearch is trying to read the total in:
rally/esrally/driver/runner.py
Line 2530 in 543b4dc
| "hits": response["response"]["hits"]["total"]["value"], |
File "/usr/local/lib/python3.8/site-packages/esrally/driver/runner.py", line 2530, in __call__
"hits": response["response"]["hits"]["total"]["value"],
KeyError: 'total'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.