You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "gianm (via GitHub)" <gi...@apache.org> on 2023/02/14 06:33:42 UTC

[GitHub] [druid] gianm commented on pull request #13798: Introduce a DruidException for better user error messages

gianm commented on PR #13798:
URL: https://github.com/apache/druid/pull/13798#issuecomment-1429195314

   We definitely need something like this. Thank you for working on it.
   
   I mentioned on the issue #13123 that it would be good to be able to be able to merge the MSQ task error system into this new DruidException system. It currently isn't, because the serialized JSON formats are different. Let's try to reconcile that. There are a couple of approaches we can take.
   
   1. Modify the JSON structure of DruidException (seems like this is generated by StandardRestExceptionEncoder) to match either MSQErrorReport or MSQFault. Not totally sure which one is the correct level, but it would be one of those two. Then, we can replace all of those with DruidExceptions without affecting the serialized JSON.
   2. Stick with the form of DruidException in this PR. Modify MSQ to serialize _both_ DruidExceptions and its current exception form. Introduce a config setting that switches off the current form, and deprecate the current form. Later on, drop it. (The usual way we would migrate an API's response structure.)
   
   The rationale is that these two error response JSON structures are very similar in intent, and we should be kind to users by using one structure rather than two.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

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