Skip to content

feat: Reworked the wait_for_consistency call #1144

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

Merged
merged 6 commits into from
Jun 27, 2025

Conversation

gkevinzheng
Copy link

@gkevinzheng gkevinzheng commented Jun 25, 2025

Changes:

  1. Added a new wrapper class WaitForConsistencyRequest as an input parameter for wait_for_consistency. The wrapper class is proto plus based to be consistent with other GAPIC calls.
  2. wait_for_consistency now generates a consistency token via generate_consistency_token then blocks on the polling harness, rather than returning the polling harness directly. This is consistent with the way Java does things.
  3. Because the polling harness is now not exposed to the user, it can be a private type.
  4. Removed wait_for_replication.

@gkevinzheng gkevinzheng requested review from a team as code owners June 25, 2025 18:22
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Jun 25, 2025
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Jun 25, 2025
@gkevinzheng gkevinzheng added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 25, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 25, 2025
The result type for the operation will be `bool`, and will return True when the
consistency check involving the given consistency token returns True.
bool:
Returns `True` after the mutations of the specified table have been fully replicated
Copy link
Contributor

Choose a reason for hiding this comment

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

@gkevinzheng gkevinzheng merged commit b7f1f90 into autogen-feature-branch Jun 27, 2025
7 of 10 checks passed
@gkevinzheng gkevinzheng deleted the wait-for-consistency-request branch June 27, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants