-
Notifications
You must be signed in to change notification settings - Fork 141
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
Fix wrong 503 error response code #2493
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2493 +/- ##
============================================
- Coverage 95.43% 95.40% -0.04%
- Complexity 5024 5025 +1
============================================
Files 483 483
Lines 13989 14005 +16
Branches 943 944 +1
============================================
+ Hits 13350 13361 +11
- Misses 617 622 +5
Partials 22 22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
1213b54
to
1ba04e1
Compare
fd9c878
to
305f729
Compare
f6ea526
to
807f564
Compare
67a1f90
to
49c6081
Compare
Signed-off-by: Vamsi Manohar <[email protected]>
AsyncQueryId queryId = new AsyncQueryId(qid); | ||
return StateStore.getJobMetaData(stateStore, queryId.getDataSourceName()) | ||
.apply(queryId.docId()); | ||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we move this to
public static QueryId queryId() {
return new QueryId(RandomStringUtils.random(10, true, true));
}
Signed-off-by: Vamsi Manohar <[email protected]> (cherry picked from commit 70d94e6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 70d94e6) Signed-off-by: Vamsi Manohar <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
1.Request
1.Response
Earlier the response was 503.
2.Response
Earlier the status code was 503 and messaging was internal problem in backend.
3. Request
3.Response
Earlier the status code was 503 and messaging was internal problem in backend.
4.Response
Earlier the response was 503.
5.Response
6.Response
7.Request
7.Response
Now the customer error is increasing with authorization errors.
Issues Resolved
#2391
#2035
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.