Skip to content

schedulingpb: add split reason to ask batch split request#1459

Merged
ti-chi-bot[bot] merged 1 commit into
pingcap:masterfrom
lhy1024:ask-batch-split-reason
May 11, 2026
Merged

schedulingpb: add split reason to ask batch split request#1459
ti-chi-bot[bot] merged 1 commit into
pingcap:masterfrom
lhy1024:ask-batch-split-reason

Conversation

@lhy1024
Copy link
Copy Markdown
Member

@lhy1024 lhy1024 commented May 9, 2026

What problem does this PR solve?

PD's scheduling service needs to carry the split reason for AskBatchSplitRequest, so MCS scheduling can preserve the same split semantics as the existing PD path. Encoding this business field in gRPC metadata is less appropriate than making it part of the protocol.

Related to tikv/pd#10648.

What is changed and how does it work?

This PR adds pdpb.SplitReason reason = 4 to schedulingpb.AskBatchSplitRequest, matching the existing pdpb.AskBatchSplitRequest field. The Go protobuf code and scripts/proto.lock are regenerated accordingly.

Check List

Tests:

  • scripts/proto_format.sh --check
  • protolock status -lockdir=scripts -protoroot=proto
  • GO111MODULE=on go test ./pkg/schedulingpb
  • GO111MODULE=on go build ./pkg/...
  • cargo check
  • cargo check --no-default-features --features prost-codec

Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot ti-chi-bot Bot requested a review from henrybw May 9, 2026 06:22
@ti-chi-bot ti-chi-bot Bot added the size/L label May 9, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 9, 2026

@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 May 11, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 11, 2026

[APPROVALNOTIFIER] This PR is APPROVED

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

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
Copy link
Copy Markdown

ti-chi-bot Bot commented May 11, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-05-11 03:22:53.92992632 +0000 UTC m=+63142.462705639: ☑️ agreed by JmPotato.
  • 2026-05-11 03:31:46.29081222 +0000 UTC m=+63674.823591529: ☑️ agreed by rleungx.

@ti-chi-bot ti-chi-bot Bot merged commit fc9e045 into pingcap:master May 11, 2026
5 of 6 checks passed
lhy1024 added a commit to lhy1024/kvproto that referenced this pull request May 25, 2026
Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.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