Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Conversation

@igorbernstein2
Copy link
Contributor

This is extracted from #613 (comment).
Currently for streaming RPCs TimedAttemptSettings only tracks how many attempts occurred trying to receive the next message. Once the message is received, the attempt count is reset.
This adds a new field to TimedAttemptSettings that will track overall count so that it can be used in a future integration with opencensus (or be used in a new retry algorithm)

This is extracted from googleapis#613 (comment).
Currently for streaming RPCs TimedAttemptSettings only tracks how many attempts occurred trying to receive the next message. Once the message is received, the attempt count is reset.
This adds a new field to TimedAttemptSettings that will track overall count so that it can be used in a future integration with opencensus (or be used in a new retry algorithm)
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 27, 2018
@igorbernstein2 igorbernstein2 changed the title Track overall attempt counts in TimedAttemptSettings WIP: Track overall attempt counts in TimedAttemptSettings Dec 27, 2018
Copy link
Contributor

@vam-google vam-google left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-io
Copy link

Codecov Report

Merging #630 into master will decrease coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #630      +/-   ##
============================================
- Coverage     74.94%   74.93%   -0.01%     
  Complexity      935      935              
============================================
  Files           177      177              
  Lines          4099     4102       +3     
  Branches        328      328              
============================================
+ Hits           3072     3074       +2     
- Misses          874      875       +1     
  Partials        153      153
Impacted Files Coverage Δ Complexity Δ
...ogle/api/gax/retrying/StreamingRetryAlgorithm.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...le/api/gax/retrying/ExponentialRetryAlgorithm.java 97.56% <100%> (+0.12%) 10 <0> (ø) ⬇️
.../google/api/gax/retrying/TimedAttemptSettings.java 100% <100%> (ø) 2 <1> (ø) ⬇️

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 1d492dc...34ace16. Read the comment docs.

1 similar comment
@codecov-io
Copy link

Codecov Report

Merging #630 into master will decrease coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #630      +/-   ##
============================================
- Coverage     74.94%   74.93%   -0.01%     
  Complexity      935      935              
============================================
  Files           177      177              
  Lines          4099     4102       +3     
  Branches        328      328              
============================================
+ Hits           3072     3074       +2     
- Misses          874      875       +1     
  Partials        153      153
Impacted Files Coverage Δ Complexity Δ
...ogle/api/gax/retrying/StreamingRetryAlgorithm.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...le/api/gax/retrying/ExponentialRetryAlgorithm.java 97.56% <100%> (+0.12%) 10 <0> (ø) ⬇️
.../google/api/gax/retrying/TimedAttemptSettings.java 100% <100%> (ø) 2 <1> (ø) ⬇️

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 1d492dc...34ace16. Read the comment docs.

@igorbernstein2 igorbernstein2 changed the title WIP: Track overall attempt counts in TimedAttemptSettings Track overall attempt counts in TimedAttemptSettings Dec 27, 2018
@igorbernstein2 igorbernstein2 merged commit a78bbb8 into googleapis:master Dec 27, 2018
@igorbernstein2 igorbernstein2 deleted the oc-attempt-count branch February 2, 2019 23:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants