You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/06/12 18:48:25 UTC

[GitHub] [druid] sirianni opened a new issue #10028: Consistent HTTP 504 error responses for query timeouts

sirianni opened a new issue #10028:
URL: https://github.com/apache/druid/issues/10028


   ### 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 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.
   
   ```json
   {
     "error": "Unknown exception",
     "errorMessage": "Sequence iterator timed out waiting for data",
     "errorClass": "org.apache.druid.java.util.common.RE",
     "host": null
   }
   ```
   
   ```json
   {
     "error": "Unknown exception",
     "errorMessage": "Query[3e115fa5-abf6-4496-8632-2b0196300e7c] url[http://druid-prod-middle-manager-38.druid-prod-middle-manager.druid-prod.svc.cluster.local:8100/druid/v2/] timed out.",
     "errorClass": "org.apache.druid.java.util.common.RE",
     "host": null
   }
   ```
   
   ```json
   {
     "error": "Unknown exception",
     "errorMessage": "Query[8245c738-799b-4901-8d00-6a64e1e55b81] url[http://druid-prod-historical-23.druid-prod-historical.druid-prod.svc.cluster.local:8083/druid/v2/] timed out.",
     "errorClass": "org.apache.druid.java.util.common.RE",
     "host": null
   }
   ```
   
   ```json
   {
     "error": "Query timeout",
     "errorMessage": "Timeout waiting for task.",
     "errorClass": "java.util.concurrent.TimeoutException",
     "host": "druid-prod-historical-0.druid-prod-historical.druid-prod.svc.cluster.local:8083"
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] capistrant closed issue #10028: Return consistent HTTP 504 error responses for query timeouts

Posted by GitBox <gi...@apache.org>.
capistrant closed issue #10028:
URL: https://github.com/apache/druid/issues/10028


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org