-
Notifications
You must be signed in to change notification settings - Fork 179
Description
Describe the bug
When different requests hitting the same endpoint _plugins/_ppl concurrently, sometimes all the requests get the same responses.
To Reproduce
Steps to reproduce the behavior:
If you curl endpoint with two different requests concurrently, sometimes you are getting correct responses, but sometimes you are getting the same response.
`
curl -s -H 'Content-Type: application/json' -XPOST localhost:9200/_plugins/_ppl -d "{ 'query': 'source=opensearch_dashboards_sample_data_flights' }" | jq ".size" & curl -s -H 'Content-Type: application/json' -XPOST localhost:9200/_plugins/_ppl -d '{ "query": "source=opensearch_dashboards_sample_data_flights | stats count() by span(timestamp, "1h")" }' | jq ".size"
[1] 25313 25314
1008
1008
[1] + done curl -s -H 'Content-Type: application/json' -XPOST -d | jq ".size"
curl -s -H 'Content-Type: application/json' -XPOST localhost:9200/_plugins/_ppl -d "{ 'query': 'source=opensearch_dashboards_sample_data_flights' }" | jq ".size" & curl -s -H 'Content-Type: application/json' -XPOST localhost:9200/_plugins/_ppl -d '{ "query": "source=opensearch_dashboards_sample_data_flights | stats count() by span(timestamp, "1h")" }' | jq ".size"
[1] 25334 25335
1008
200
[1] + done curl -s -H 'Content-Type: application/json' -XPOST -d | jq ".size"
`
Expected behavior
Always getting the correct responses for different requests under concurrent context.
Plugins
SQL
Host/Environment (please complete the following information):
- OS: MacOS Catalina
- Version 10.15.7