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
When a Druid query hits the timeout set in the query context, a consistent error response should be returned, ideally with an HTTP 504 error code.
Actual Behavior
In practice, we see several different responses returned for this scenario, all with an HTTP 500 error code. This makes it difficult to detect and handle the error in client code.
{
"error": "Unknown exception",
"errorMessage": "Sequence iterator timed out waiting for data",
"errorClass": "org.apache.druid.java.util.common.RE",
"host": null
}
sirianni
changed the title
Consistent HTTP 504 error responses for query timeouts
Return consistent HTTP 504 error responses for query timeouts
Jun 12, 2020
Affected Version
0.17.0
Description
Expected Behavior
When a Druid query hits the
timeout
set in the query context, a consistent error response should be returned, ideally with anHTTP 504
error code.Actual Behavior
In practice, we see several different responses returned for this scenario, all with an
HTTP 500
error code. This makes it difficult to detect and handle the error in client code.The text was updated successfully, but these errors were encountered: