Skip to content

Bigtable admin: helper to await an optimized restore table #7210

Description

@dbolduc

Objective

Help our Bigtable customers determine when a restored table is optimized and ready for use.

Background

We have a GAPIC LRO for bigtable table admin's RestoreTable RPC. This operation completes when a table is usable, but not necessarily when the table is best used.

There is some optimize_table_operation_name field in the response that tracks a secondary LRO for when the table is optimized. Applications that want to wait until the restored table has been optimized have to manually poll this operation name with GetOperation and extract the proper type in the response Any.

We should expose some sort of first-class way for applications to await the secondary optimize LRO.

Design Sketch

I would probably add some new type like RestoredTablePoller or something and extend the builder::RestoreTable to return it, similarly to what we do with BQ's into_job_poller().

I would consider just adding an until_optimized() on the top level builder... but (nit) I think this does not let an application take a restored table and save the operation name across processes. 🤷

There is also a nuance around: we are performing two LRO loops. Do we need a separate policy for each one?

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    api: bigtableIssues related to the Bigtable API.
    on Oct 15, 2026
  2. added theissue type on Oct 15, 2026
  3. added
    api: bigtableadminIssues related to the Cloud Bigtable Admin API API.
    and removed
    api: bigtableIssues related to the Bigtable API.
    on Oct 15, 2026
  4. Arman-mi commented on Nov 4, 2026

    @Arman-mi

    Hello,
    I would like to work on this
    could this be assigned to me please?

  5. dbolduc commented on Nov 4, 2026

    @dbolduc
    MemberAuthor

    Hey @Arman-mi, thanks for your interest, but this is not a great issue for an external contributor. (It has a non-obvious API, testing will incur billing costs, we haven't scheduled the work).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigtableadminIssues related to the Cloud Bigtable Admin API API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions