feat: Add methods to wait for consistency with a token#2762
Merged
jinseopkim0 merged 6 commits intomainfrom Feb 6, 2026
Merged
feat: Add methods to wait for consistency with a token#2762jinseopkim0 merged 6 commits intomainfrom
jinseopkim0 merged 6 commits intomainfrom
Conversation
This change adds support for checking consistency using a provided token, enabling distributed workflows. It also adds convenience methods to BigtableTableAdminClient for generating and waiting for a token automatically. This addresses the Consistency Tokens CUJ. Tracking Bug: b/475820272
lqiu96
reviewed
Feb 4, 2026
...loud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java
Outdated
Show resolved
Hide resolved
lqiu96
reviewed
Feb 4, 2026
| * Polls an existing consistency token until replication is consistent. Useful for checking | ||
| * consistency of a token generated in a separate process. Blocks until completion. | ||
| * | ||
| * @param tableId The table to check. |
Member
There was a problem hiding this comment.
qq, I'm assuming this means the downstream table? e.g. If A wants to replicate data to B, then tableId refers to B?
If so, does that mean that replication is limited to one table or that a user would need to call this method multiple times?
Contributor
Author
There was a problem hiding this comment.
This method is not replicating table A to table B, it's about replicating table A across all clusters (same as awaitReplication method). The user would need to call once per table. Please let me know if you still have questions.
Member
There was a problem hiding this comment.
Oh gotcha. I think would make more sense to a bigtable customer (table replication across the cluster).
lqiu96
reviewed
Feb 4, 2026
...oud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/ConsistencyRequest.java
Show resolved
Hide resolved
8f8e614 to
b8e3916
Compare
lqiu96
reviewed
Feb 5, 2026
...loud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java
Outdated
Show resolved
Hide resolved
lqiu96
reviewed
Feb 5, 2026
...loud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java
Outdated
Show resolved
Hide resolved
lqiu96
approved these changes
Feb 5, 2026
lqiu96
approved these changes
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This change adds support for checking consistency using a provided token, enabling distributed workflows. It also adds convenience methods to BigtableTableAdminClient for generating and waiting for a token automatically.
This addresses the Consistency Tokens CUJ.
Tracking Bug: b/475820272