FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Retry and failure-handling logic for http-json by andreamlin · Pull Request #363 · googleapis/gax-java · GitHub

This repository was archived by the owner on Sep 26, 2023. It is now read-only.
/ gax-java Public archive

Retry and failure-handling logic for http-json - #363

Merged
andreamlin merged 50 commits into
googleapis:gax-httpjsonfrom
andreamlin:retry
Aug 31, 2017
Merged

andreamlin merged 50 commits into
googleapis:gax-httpjsonfrom
andreamlin:retry

Conversation

andreamlin commented Aug 30, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

Exception handling and retry logic for http calls.

Blocked on #361.

codecov-io commented Aug 30, 2017
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #363 into gax-httpjson will decrease coverage by 8.92%.
The diff coverage is 95.23%.

@@                Coverage Diff                 @@
##             gax-httpjson     #363      +/-   ##
==================================================
- Coverage           76.65%   67.73%   -8.93%     
- Complexity            494      535      +41     
==================================================
  Files                 114      135      +21     
  Lines                2540     3065     +525     
  Branches              185      215      +30     
==================================================
+ Hits                 1947     2076     +129     
- Misses                522      908     +386     
- Partials               71       81      +10
Impacted Files Coverage Δ Complexity Δ
...le/api/gax/httpjson/HttpJsonExceptionCallable.java 90.32% <100%> (ø) 2 <0> (?)
...ogle/api/gax/httpjson/ApiResultRetryAlgorithm.java 92.85% <90%> (ø) 7 <3> (?)
.../gax/httpjson/HttpJsonAuthCallContextEnhancer.java 0% <0%> (ø) 0% <0%> (?)
...i/gax/httpjson/ApiMessageHttpRequestFormatter.java 0% <0%> (ø) 0% <0%> (?)
...httpjson/InstantiatingHttpJsonChannelProvider.java 0% <0%> (ø) 0% <0%> (?)
...om/google/api/gax/httpjson/HttpJsonStatusCode.java 66.66% <0%> (ø) 5% <0%> (?)
...x/httpjson/HttpJsonChannelCallContextEnhancer.java 0% <0%> (ø) 0% <0%> (?)
...m/google/api/gax/httpjson/HttpRequestRunnable.java 0% <0%> (ø) 0% <0%> (?)
...com/google/api/gax/httpjson/HttpJsonTransport.java 14.28% <0%> (ø) 1% <0%> (?)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e4a386...f18a013. Read the comment docs.

Copy link
Copy Markdown
Contributor Author

PTAL.

garrettjonesgoogle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

int statusCode;
boolean canRetry;
String message = null;
// TODO implement this for http-json

This comment was marked as spam.

// }
StatusCode responseCode = ((HttpJsonApiException) prevThrowable).getStatusCode();
if (prevThrowable != null
&& responseCode.equals(HttpJsonStatusCode.of(STATUS_CODE_DEADLINE_EXCEEDED))) {

This comment was marked as spam.

andreamlin merged commit 33fa52b into googleapis:gax-httpjson Aug 31, 2017
andreamlin deleted the retry branch August 31, 2017 16:41
garrettjonesgoogle pushed a commit to garrettjonesgoogle/gax-java that referenced this pull request Oct 18, 2017
Exception handling and retry logic for http calls.
garrettjonesgoogle pushed a commit that referenced this pull request Oct 31, 2017
Exception handling and retry logic for http calls.
garrettjonesgoogle pushed a commit that referenced this pull request Oct 31, 2017
Exception handling and retry logic for http calls.
andreamlin added a commit to andreamlin/gax-java that referenced this pull request Mar 15, 2018
correct license on MockHttpService

remove unused de/serialization methods in ApiMethodDescriptor

comments

comments for MockHttpService

Bootstrapping gax-httpjson (googleapis#355)

Http implementation (googleapis#361)

Starting implementation for HTTP/JSON.

This was tested by using the surface generated from https://github.com/googleapis/toolkit/tree/discogapic to list, get, insert, and delete Compute Address resources in a live Google Cloud project.

Retry and failure-handling logic for http-json (googleapis#363)

Exception handling and retry logic for http calls.

Merge master (googleapis#364)

Merge in updates from the master branch.

new HttpApiExceptionFactory that uses googleapis/rpc/code.proto to map http status codes to wrapper exception types

RetryTest passes

removed HttpJsonApiException.java

no longer need to check status code when catching specific apiexception

???

removed unused file

adding Struct class

comments

moving ResourceName stuff to ApiMessage

pushing ResourceNameStruct into ApiMethodDescriptor and out of ApiMessage

add license

getFieldValue() updated

remove resourcenamestruct and replace with new resourcenamefactory class; this depends on api-common PR

formatting

apimessage.getFieldSTringValue doesn't throw IOException

ResourseNameFactory uses parse() instead of parseFrom()

no need to declare throws IllegalArgumentException"

setSerializer->setMethodDescriptor

fix license header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL