jihoonson commented on pull request #10464:
URL: https://github.com/apache/druid/pull/10464#issuecomment-721388168


   > Good point. How does something like this work for release notes? Does the 
patch author write up release notes for their change that the release manager 
will use later on?
   
   We usually ask authors to add some summary and major changes in the PR 
description so that the release manager can easily pick up and add them in the 
release notes.
   
   > Could you add more to your thoughts that 408 may be a better error code? I 
thought that 504 sounded ideal since the Broker API is kind of a proxy to the 
druid query engine. The engine did not produce a response in time for the 
Broker to return to client so it responds with 504. I also worry about the 
implications of using a 408 code in relation to the potential for middleware 
auto-retrying the request when the end client may not want that (something like 
a browser doing auto retries N times before actually surfacing that 408 to 
client if it continues). And I've always had the perception of 5XX being a 
server error and 4XX being more of a client error, like the client made a 
mistake. But in this case the server isn't coming up with a response in time.
   
   Good point. The reason I mentioned 408 is that the broker does not always 
act as a gateway, but also performs query execution especially when you have 
subqueries on top of non-groupBy or multiple joins in the query. I think these 
queries cause timeout more often because processing subqueries or multiple 
joins are not parallelizable for now. But I do see why you chose 504 instead of 
408 which also seems reasonable.


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to