You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which feature your question relates to?
concurrent requests
Question details
When two identical requests are sent to the CHproxy, it only executes the first one, while the second one waits and sends the same result. If the user cancels the first request, the second one is also canceled with the error "concurrent query failed". Is this expected behavior? It seems to me that in this case the second request should be launched and return the correct result from the clickhouse.
Additional context/motivations
We connected CHProxy to Grafana, and Grafana has a refresh button to reload the data. But sometimes it tries to update itself based on a timer or a html element blur event. In this case, two requests are sent simultaneously, and grafana cancels the first one. CHproxy cancels the second one, so no data is reloaded.
The text was updated successfully, but these errors were encountered:
Thanks for the additional context, we were not aware Grafana was behaving this way.
If the error in case of cancelation is specific, we could have a dedicated behavior for this error.
The core maintainers won't have time in the next months to look at it, so if you have time, feel free to create a PR and we will review it.
However, I wasn't able to reproduce it in a test yet. I don't want to create a PR without being able to reproduce it in a test. I'll probably come back to this after the holidays though.
Which feature your question relates to?
concurrent requests
Question details
When two identical requests are sent to the CHproxy, it only executes the first one, while the second one waits and sends the same result. If the user cancels the first request, the second one is also canceled with the error "concurrent query failed". Is this expected behavior? It seems to me that in this case the second request should be launched and return the correct result from the clickhouse.
Additional context/motivations
We connected CHProxy to Grafana, and Grafana has a refresh button to reload the data. But sometimes it tries to update itself based on a timer or a html element blur event. In this case, two requests are sent simultaneously, and grafana cancels the first one. CHproxy cancels the second one, so no data is reloaded.
The text was updated successfully, but these errors were encountered: