Skip to content

refactor: decouple ConsistencyRequest from TableAdminRequestContext#2887

Open
jinseopkim0 wants to merge 6 commits intomainfrom
refactor-consistency-request
Open

refactor: decouple ConsistencyRequest from TableAdminRequestContext#2887
jinseopkim0 wants to merge 6 commits intomainfrom
refactor-consistency-request

Conversation

@jinseopkim0
Copy link
Copy Markdown
Contributor

This commit updates the internal plumbing for ConsistencyRequest and AwaitConsistencyCallable to support fully qualified table names without breaking the existing public API for the legacy BigtableTableAdminClient.

b/502616786

This commit updates the internal plumbing for `ConsistencyRequest` and
`AwaitConsistencyCallable` to support fully qualified table names without
breaking the existing public API for the legacy `BigtableTableAdminClient`.

b/502616786
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/java-bigtable API. labels Apr 15, 2026
@jinseopkim0 jinseopkim0 requested a review from lqiu96 April 15, 2026 19:30
@jinseopkim0 jinseopkim0 marked this pull request as ready for review April 15, 2026 19:31
@jinseopkim0 jinseopkim0 requested review from a team as code owners April 15, 2026 19:31
@jinseopkim0 jinseopkim0 requested a review from lqiu96 April 21, 2026 19:08
Preconditions.checkNotNull(consistencyToken, "consistencyToken must not be null");

return new AutoValue_ConsistencyRequest(
tableName,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(just a general question): If this uses the fully qualified name (i assume by the true param), do we need to do any validation to ensure that the input is fully qualified?

What happens if isn't?

BigtableTableAdminStubSettings settings) throws IOException {
return new EnhancedBigtableTableAdminStub(settings, ClientContext.create(settings), null);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: Not something that needs to be done in this PR. Thoughts on adding a similar one for the createEnhanced below? I think it would be helpful to help users know when to pick this one vs the other?

e.g. are there certain cases where they don't know the fully qualified TableAdminRequestContext values? Or perhaps don't want it?

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/java-bigtable API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants