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

pd-ctl: reduce duplicate params in grant hot region scheduler #8673

Merged
merged 3 commits into from
Sep 29, 2024

Conversation

lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Sep 27, 2024

What problem does this PR solve?

Issue Number: Close #8672

What is changed and how does it work?

Check List

Tests

  • Unit test

Release note

None.

@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/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 27, 2024
Copy link
Member

@rleungx rleungx left a comment

Choose a reason for hiding this comment

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

seem test failed

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 27, 2024
Signed-off-by: lhy1024 <[email protected]>
Copy link

codecov bot commented Sep 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.54%. Comparing base (642f0e9) to head (7116945).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8673      +/-   ##
==========================================
+ Coverage   77.50%   77.54%   +0.03%     
==========================================
  Files         474      474              
  Lines       62311    62355      +44     
==========================================
+ Hits        48297    48353      +56     
+ Misses      10448    10436      -12     
  Partials     3566     3566              
Flag Coverage Δ
unittests 77.54% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

})

// use duplicate store id
checkSchedulerCommand(re, cmd, pdAddr, []string{"-u", pdAddr, "scheduler", "add", "grant-hot-region-scheduler", "3", "1,2,3"}, map[string]bool{
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to check

testutil.Eventually(re, func() bool {
		mustExec(re, cmd, []string{"-u", pdAddr, "scheduler", "config", "grant-hot-region-scheduler"}, &conf3)
		return compareGrantHotRegionSchedulerConfig(expected3, conf3)
	})

after adding grant-hot-region-scheduler?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean L658-L661?

Copy link
Contributor

ti-chi-bot bot commented Sep 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: okJiang, rleungx

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 Sep 29, 2024
Copy link
Contributor

ti-chi-bot bot commented Sep 29, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-27 11:15:08.914360402 +0000 UTC m=+7864.334573409: ☑️ agreed by rleungx.
  • 2024-09-29 07:17:55.176685908 +0000 UTC m=+166430.596898917: ☑️ agreed by okJiang.

Signed-off-by: lhy1024 <[email protected]>
@lhy1024 lhy1024 changed the title scheduler: reduce duplicate params in grant hot region scheduler pd-ctl: reduce duplicate params in grant hot region scheduler Sep 29, 2024
@ti-chi-bot ti-chi-bot bot merged commit 5ba4db7 into tikv:master Sep 29, 2024
25 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 release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scheduler: reduce duplicate params in grant hot region scheduler
3 participants