[GRPC] Add more details for GRPC error responses#19568
[GRPC] Add more details for GRPC error responses#19568karenyrx merged 3 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Karen X <karenxyr@gmail.com>
msfroh
left a comment
There was a problem hiding this comment.
Nice! This is a lot more helpful.
|
❌ Gradle check result for 96b24d1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Karen X <karenxyr@gmail.com>
|
❕ Gradle check result for 786c030: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19568 +/- ##
============================================
- Coverage 73.07% 73.07% -0.01%
+ Complexity 70635 70630 -5
============================================
Files 5723 5723
Lines 323490 323503 +13
Branches 46851 46851
============================================
+ Hits 236401 236405 +4
- Misses 67977 68023 +46
+ Partials 19112 19075 -37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Karen X <karenxyr@gmail.com>
|
❕ Gradle check result for 667df97: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
…ect#19568) Signed-off-by: Karen X <karenxyr@gmail.com>
…ect#19568) Signed-off-by: Karen X <karenxyr@gmail.com>
…ect#19568) Signed-off-by: Karen X <karenxyr@gmail.com>
Description
The existing GRPC errors returned only give the top level error, for example:
With this change, it will add more details (matching the HTTP one), which make it easier to debug, for example:
which matches the HTTP one:
A point to note is that it will return the HTTP status code as well (
"status": 400) in GRPC error responses. Amenable to opinions if this is a blocker, but have left the entire XContent output here without modifications for now.Related Issues
Resolves #18926
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.