Skip to content

keyspacepb: add load keyspace by ID RPC#1491

Merged
rleungx merged 2 commits into
masterfrom
pd-keyspace-load-by-id
Jun 22, 2026
Merged

keyspacepb: add load keyspace by ID RPC#1491
rleungx merged 2 commits into
masterfrom
pd-keyspace-load-by-id

Conversation

@rleungx

@rleungx rleungx commented Jun 18, 2026

Copy link
Copy Markdown
Member

What is changed

Add LoadKeyspaceByID to the keyspace service and introduce LoadKeyspaceByIDRequest carrying the target keyspace ID.

Generated Go bindings and proto.lock are updated for the new RPC.

Tests

Verified through the dependent PD integration test:

  • make -C tests/integrations gotest GOTEST_ARGS='./client -run TestClientStatelessTestSuite/TestLoadKeyspaceByID -count=1'

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@ti-chi-bot

ti-chi-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

@bufferflies: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot Bot added the lgtm label Jun 22, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bufferflies, JmPotato, niubell

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot

ti-chi-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2026-06-18 08:31:30.693700963 +0000 UTC m=+1639991.764018352: ☑️ agreed by JmPotato.
  • 2026-06-22 06:13:40.27776265 +0000 UTC m=+1977321.348080030: ☑️ agreed by niubell.

@rleungx rleungx merged commit b41e863 into master Jun 22, 2026
5 checks passed
@rleungx rleungx deleted the pd-keyspace-load-by-id branch June 22, 2026 06:32
ti-chi-bot Bot pushed a commit to tikv/pd that referenced this pull request Jun 23, 2026
ref #10912\n\nAdd a LoadKeyspaceByID gRPC handler that loads keyspace metadata by ID and applies the same region-bound readiness check as LoadKeyspace.

Expose LoadKeyspaceByID on the Go PD client with request metrics, and add unit coverage for successful responses and header errors.

Update kvproto to the merged pingcap/kvproto#1491 version for the new RPC definition.\n\nSigned-off-by: Ryan Leung <rleungx@gmail.com>
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