8000 Pub/Sub: fix default RPC timeouts in publish retry settings by anguillanneuf · Pull Request #6257 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@anguillanneuf
Copy link
Contributor
@anguillanneuf anguillanneuf commented Sep 11, 2019

Setting initialRpcTimeout == maxRpcTimeout == totalTimeout effectively turns off publish retry.

static final RetrySettings DEFAULT_RETRY_SETTINGS =
RetrySettings.newBuilder()
.setTotalTimeout(DEFAULT_TOTAL_TIMEOUT)
.setInitialRetryDelay(Duration.ofMillis(5))
.setRetryDelayMultiplier(2)
.setMaxRetryDelay(Duration.ofMillis(Long.MAX_VALUE))
.setInitialRpcTimeout(DEFAULT_RPC_TIMEOUT)
.setRpcTimeoutMultiplier(2)
.setMaxRpcTimeout(DEFAULT_RPC_TIMEOUT)
.build();

This PR updates the defaults.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 11, 2019
Copy link
Member
@hongalex hongalex left a comment

Choose a reason for hiding this comment

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

LGTM after the tests pass.

@codecov
Copy link
codecov bot commented Sep 12, 2019

Codecov Report

Merging #6257 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #6257      +/-   ##
============================================
- Coverage      47.1%    47.1%   -0.01%     
+ Complexity    27376    27375       -1     
============================================
  Files          2524     2524              
  Lines        277599   277600       +1     
  Branches      31983    31983              
============================================
- Hits         130771   130767       -4     
- Misses       137054   137058       +4     
- Partials       9774     9775       +1
Impacted Files Coverage Δ Complexity Δ
...ain/java/com/google/cloud/pubsub/v1/Publisher.java 89.15% <100%> (+0.03%) 40 <0> (ø) ⬇️
.../cloud/datastore/testing/LocalDatastoreHelper.java 80.59% <0%> (-4.48%) 17% <0%> (ø)
...oogle/cloud/spanner/jdbc/SingleUseTransaction.java 86.5% <0%> (-1%) 36% <0%> (-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 55d95d2...aa86c8a. Read the comment docs.

@pmakani pmakani added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 12, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 12, 2019
@anguillanneuf anguillanneuf merged commit 299f5bb into master Sep 12, 2019
@anguillanneuf anguillanneuf deleted the pubsub branch September 12, 2019 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

0