Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/simulator: replace GenerateSplitKey with GenerateTableKeys #8332

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

HuSharp
Copy link
Member

@HuSharp HuSharp commented Jun 26, 2024

What problem does this PR solve?

GenerateSplitKey is less efficient and has some problems, such as wrong generate when start_key and end_key are same, and wrong generate when start_key is ""... Actually, we can replace GenerateSplitKey with GenerateTableKeys which is more line with test requirement

Issue Number: Ref #8135

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)

Release note

None.

Signed-off-by: husharp <jinhao.hu@pingcap.com>
@HuSharp HuSharp requested a review from lhy1024 June 26, 2024 10:29
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. 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 Jun 26, 2024
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jun 26, 2024
Copy link
Contributor

ti-chi-bot bot commented Jun 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lhy1024, nolouch

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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jun 27, 2024
Copy link
Contributor

ti-chi-bot bot commented Jun 27, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-06-26 11:26:19.166148161 +0000 UTC m=+805305.651636993: ☑️ agreed by lhy1024.
  • 2024-06-27 03:46:36.231718541 +0000 UTC m=+864122.717207372: ☑️ agreed by nolouch.

Signed-off-by: husharp <jinhao.hu@pingcap.com>
@HuSharp HuSharp changed the title tools/simulator: support for generating correct split keys tools/simulator: replace GenerateSplitKey with GenerateTableKeys Jun 27, 2024
@ti-chi-bot ti-chi-bot bot merged commit ab7f903 into tikv:master Jun 27, 2024
17 checks passed
@HuSharp HuSharp deleted the fix_simualtor_keys branch June 27, 2024 04:57
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 release-note-none Denotes a PR that doesn't merit a release note. 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.

3 participants