Skip to content

Conversation

lance6716
Copy link
Contributor

@lance6716 lance6716 commented Aug 25, 2025

Without the code fix, the new test will fail with

RegionError(Error { message: "raft entry is too large, region 8, entry size 107438290" ...

see https://github.com/tikv/client-rust/actions/runs/17204354874/job/48801577491?pr=502

Signed-off-by: lance6716 <lance6716@gmail.com>
@ti-chi-bot ti-chi-bot bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has signed the dco. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 25, 2025
Signed-off-by: lance6716 <lance6716@gmail.com>
Signed-off-by: lance6716 <lance6716@gmail.com>
Signed-off-by: lance6716 <lance6716@gmail.com>
@lance6716 lance6716 changed the title [WIP] split batches for RawKV requests split batches for RawKV batch put requests Aug 25, 2025
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 25, 2025
Signed-off-by: lance6716 <lance6716@gmail.com>
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Aug 25, 2025
self.ttls = ttls;
}

fn clone_then_apply_shard(&self, shard: Self::Shard) -> Self
Copy link
Contributor Author

@lance6716 lance6716 Aug 25, 2025

Choose a reason for hiding this comment

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

This skips cloning the large "batch put" payload in self.pairs when splits into shards' requests

Copy link

ti-chi-bot bot commented Aug 25, 2025

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

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.

Copy link
Collaborator

@pingyu pingyu left a comment

Choose a reason for hiding this comment

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

Rest LGTM.

@lance6716
Copy link
Contributor Author

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 25, 2025
Signed-off-by: lance6716 <lance6716@gmail.com>
@lance6716 lance6716 changed the title split batches for RawKV batch put requests split batches for RawKV batch put / delete requests Aug 25, 2025
Signed-off-by: lance6716 <lance6716@gmail.com>
@lance6716
Copy link
Contributor Author

I also found that batch delete will also meet "raft entry is too large" error when cleaning up test data. So I implement Batchable for RawBatchDeleteRequest. PTAL again @pingyu @sleepymole

Signed-off-by: lance6716 <lance6716@gmail.com>
@lance6716
Copy link
Contributor Author

/unhold

@ti-chi-bot ti-chi-bot bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 25, 2025
Copy link
Collaborator

@pingyu pingyu left a comment

Choose a reason for hiding this comment

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

LGTM~

Copy link

ti-chi-bot bot commented Aug 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: crazycs520, pingyu, sleepymole

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

The pull request process is described here

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 added the lgtm label Aug 25, 2025
@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Aug 25, 2025
Copy link

ti-chi-bot bot commented Aug 25, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-08-25 09:16:23.411931214 +0000 UTC m=+172475.289762158: ☑️ agreed by crazycs520.
  • 2025-08-25 13:41:39.571573217 +0000 UTC m=+188391.449404170: ☑️ agreed by pingyu.

@ti-chi-bot ti-chi-bot bot merged commit 76959e7 into tikv:master Aug 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants