-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where O where did my Error Code go #2340
Comments
The query metrics API expects QueryExceptions to be found in the cause of the original exception passed to BaseQueryMetric.setError(Throwable). In the case of CompositeQueryLogic, due to the additional wrapping of exceptions passed from its defined internal logics in a CompositeLogicException, query exceptions were not in the expected place in the stack hierarchy. Update the CompositeLogicException to identify any QueryExceptions present in the stacks of exception arguments, and ensure that they are either already a QueryException, or that if they contain a QueryException in the stack, that they are subsequently wrapped in a CompositeRaisedQueryException with a copy of the desired error code. Fixes #2340
…cs (#2399) The query metrics API expects QueryExceptions to be found in the cause of the original exception passed to BaseQueryMetric.setError(Throwable). In the case of CompositeQueryLogic, due to the additional wrapping of exceptions passed from its defined internal logics in a CompositeLogicException, query exceptions were not in the expected place in the stack hierarchy. Updateid the CompositeLogicException to identify any QueryExceptions present in the stacks of exception arguments, and ensure that they are either already a QueryException, or that if they contain a QueryException in the stack, that they are subsequently wrapped in a CompositeRaisedQueryException with a copy of the desired error code.
Reopening issue. Error codes are still missing from metrics. Details from a conversation with Ivan:
|
Closing ticket. The bug appeared on 7.0.7, and the repo at that tag did not have the bugfix commit in it. I confirmed that applying the bug fix did fix the issue with error codes not appearing metrics. Created tickets #2485 and #2486 to address areas of improvements that can be made for recording error codes to metrics. |
We are no longer placing error codes in our metrics when using the federated query logic (CompositeQueryLogic). E.g. if a query "times out" then the error code should be 500-27.
The text was updated successfully, but these errors were encountered: