GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Pub/Sub: fix default RPC timeouts in publish retry settings by anguillanneuf · Pull Request #6257 · googleapis/google-cloud-java

Conversation

@anguillanneuf

@anguillanneuf anguillanneuf commented Sep 11, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

google-cloud-java/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java

Lines 453 to 462 in ff068a9

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@anguillanneuf
Use different initial and max RPC timeout
0a95be3
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 11, 2019
@anguillanneuf
anguillanneuf requested review from kamalaboulhosn and sduskis September 11, 2019 22:17
anguillanneuf added 2 commits September 11, 2019 15:56
@anguillanneuf
Match totalTimeout with maxRpcTimeout
6383657
@anguillanneuf
Use GAPIC defaults
aa86c8a
@anguillanneuf
anguillanneuf requested a review from hongalex September 11, 2019 23:28
hongalex
hongalex approved these changes Sep 12, 2019
View reviewed changes

@hongalex hongalex left a comment

Copy link
Copy Markdown
Member

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.

LGTM after the tests pass.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@codecov

codecov Bot commented Sep 12, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@athakor athakor mentioned this pull request Sep 12, 2019
Pub/Sub retry settings examples causing customer & support pain #6254
Closed
@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
kamalaboulhosn
kamalaboulhosn approved these changes Sep 12, 2019
View reviewed changes
@anguillanneuf
anguillanneuf merged commit 299f5bb into master Sep 12, 2019
@anguillanneuf
anguillanneuf deleted the pubsub branch September 12, 2019 17:00
@chingor13 chingor13 mentioned this pull request Sep 18, 2019
Release google-cloud-java v0.110.0 #6294
Merged
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@anguillanneuf
Pub/Sub: fix default RPC timeouts in publish retry settings (#6257)
01c8b65
* Use different initial and max RPC timeout

* Match totalTimeout with maxRpcTimeout

* Use GAPIC defaults
meltsufin pushed a commit that referenced this pull request May 1, 2026
@anguillanneuf
Pub/Sub: fix default RPC timeouts in publish retry settings (#6257)
a7556e1
* Use different initial and max RPC timeout

* Match totalTimeout with maxRpcTimeout

* Use GAPIC defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hongalex hongalex hongalex approved these changes
@sduskis sduskis Awaiting requested review from sduskis
+1 more reviewer
@kamalaboulhosn kamalaboulhosn kamalaboulhosn approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@anguillanneuf @kamalaboulhosn @hongalex @googlebot @pmakani @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.