Skip to content
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

Add option to adjust ReadChangeStream API timeout to allow longer timeout for longer checkpoint durations #33001

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tonytanger
Copy link
Contributor

This is useful if the runner's checkpoint duration is longer than 15s which is the default we set for ReadChangeStream API. If the runner's checkpoint duration is longer than 15s, the ReadChangeStream request will get deadline exceeded error before the runner initiated. This will cause the run to fail and return to the previous checkpoint.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@tonytanger
Copy link
Contributor Author

@jackdingilian for Bigtable review

Copy link
Contributor

github-actions bot commented Nov 1, 2024

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

…eout for longer checkpoint durations

Change-Id: Ia61388bed5997b7138b15a014d6370d49cbf5277
@tonytanger tonytanger force-pushed the bigtable_add_display_data branch from fcd7425 to 2486314 Compare November 4, 2024 17:33
Change-Id: If34866637045314dfeef1807122cc34b97cc5ddc
Copy link
Contributor

github-actions bot commented Nov 4, 2024

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @Abacn for label java.
R: @johnjcasey for label io.
R: @mutianf for label bigtable.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

Copy link
Contributor

Reminder, please take a look at this pr: @Abacn @johnjcasey @mutianf

@@ -52,6 +52,7 @@ public class BigtableChangeStreamAccessor implements AutoCloseable {
// Create one bigtable data/admin client per bigtable config (project/instance/table/app profile)
private static final ConcurrentHashMap<BigtableConfig, BigtableChangeStreamAccessor>
bigtableAccessors = new ConcurrentHashMap<>();
private static Duration readChangeStreamTimeout = Duration.ofSeconds(15);
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be null? DEFAULT_READ_CHANGE_STREAM_TIMEOUT already defines the default.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the late reply.

I updated the location of the default value into the Accessor. This makes it more clear what the default value is and where it is set. BigtableIO, instead of setting it, will override the default timestamp if necessary.

@Abacn
Copy link
Contributor

Abacn commented Nov 19, 2024

I see it get approved and there is a minor question. Will merge once it is resolved

Copy link
Contributor

Reminder, please take a look at this pr: @Abacn @johnjcasey @mutianf

@Abacn
Copy link
Contributor

Abacn commented Nov 26, 2024

waiting on author

…on about where default is set

Change-Id: Ia76ff2e3ba4f6a91299e907ec404b720e900c76f
Change-Id: I89ba1d48742d5204168249d632accf86d68e140c
Copy link
Contributor

Reminder, please take a look at this pr: @Abacn @johnjcasey @mutianf

Copy link
Contributor

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @damondouglas for label java.
R: @damondouglas for label io.
R: @Abacn for label bigtable.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants